You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
new file dialog!
-ItemList control for easier lists/thumbnails -New file dialog, with support for thumbnails, favorites, recent places, etc -Moved .fscache out of the project, no more bugs due to committed/pulled .fscache! -Dir dialog now sorts directories
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "os/file_access.h"
|
||||
#include "editor_node.h"
|
||||
#include "io/resource_saver.h"
|
||||
|
||||
#include "editor_settings.h"
|
||||
|
||||
EditorFileSystem *EditorFileSystem::singleton=NULL;
|
||||
|
||||
@@ -357,7 +357,9 @@ void EditorFileSystem::_scan_scenes() {
|
||||
|
||||
|
||||
String project=Globals::get_singleton()->get_resource_path();
|
||||
FileAccess *f =FileAccess::open(project+"/.fscache",FileAccess::READ);
|
||||
|
||||
String fscache = EditorSettings::get_singleton()->get_project_settings_path().plus_file("file_cache");
|
||||
FileAccess *f =FileAccess::open(fscache,FileAccess::READ);
|
||||
|
||||
if (f) {
|
||||
//read the disk cache
|
||||
@@ -470,7 +472,9 @@ void EditorFileSystem::_scan_scenes() {
|
||||
|
||||
|
||||
//save back the findings
|
||||
f=FileAccess::open(project+"/.fscache",FileAccess::WRITE);
|
||||
// String fscache = EditorSettings::get_singleton()->get_project_settings_path().plus_file("file_cache");
|
||||
|
||||
f=FileAccess::open(fscache,FileAccess::WRITE);
|
||||
_save_type_cache_fs(scandir,f);
|
||||
f->close();
|
||||
memdelete(f);
|
||||
|
||||
Reference in New Issue
Block a user