aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_file_system.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-06-06 09:44:38 -0300
committerJuan Linietsky2015-06-06 09:44:38 -0300
commit9acab32daaea38e09c4d74d5f0340479d3dd41bd (patch)
treec978e8206cc9319f32c71168fb612fc30b4ec809 /tools/editor/editor_file_system.cpp
parent07a466f6e6dd28bbb8b917690b634070537f1613 (diff)
downloadgodot-9acab32daaea38e09c4d74d5f0340479d3dd41bd.tar.gz
godot-9acab32daaea38e09c4d74d5f0340479d3dd41bd.tar.zst
godot-9acab32daaea38e09c4d74d5f0340479d3dd41bd.zip
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
Diffstat (limited to 'tools/editor/editor_file_system.cpp')
-rw-r--r--tools/editor/editor_file_system.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/editor/editor_file_system.cpp b/tools/editor/editor_file_system.cpp
index ae083db0f..d741087a9 100644
--- a/tools/editor/editor_file_system.cpp
+++ b/tools/editor/editor_file_system.cpp
@@ -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);