diff options
Diffstat (limited to 'editor/editor_file_system.h')
-rw-r--r-- | editor/editor_file_system.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/editor/editor_file_system.h b/editor/editor_file_system.h index f98758fd03..cee3219b43 100644 --- a/editor/editor_file_system.h +++ b/editor/editor_file_system.h @@ -3,7 +3,7 @@ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ -/* http://www.godotengine.org */ +/* https://godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */ /* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */ @@ -54,6 +54,7 @@ class EditorFileSystemDirectory : public Object { StringName type; uint64_t modified_time; uint64_t import_modified_time; + bool import_valid; Vector<String> deps; bool verified; //used for checking changes }; @@ -83,6 +84,7 @@ public: String get_file_path(int p_idx) const; StringName get_file_type(int p_idx) const; Vector<String> get_file_deps(int p_idx) const; + bool get_file_import_is_valid(int p_idx) const; EditorFileSystemDirectory *get_parent(); @@ -137,6 +139,11 @@ class EditorFileSystem : public Node { void _scan_filesystem(); + Set<String> late_added_files; //keep track of files that were added, these will be re-scanned + Set<String> late_update_files; + + void _save_late_updated_files(); + EditorFileSystemDirectory *filesystem; static EditorFileSystem *singleton; @@ -148,6 +155,7 @@ class EditorFileSystem : public Node { uint64_t modification_time; uint64_t import_modification_time; Vector<String> deps; + bool import_valid; }; HashMap<String, FileCache> file_cache; @@ -196,6 +204,8 @@ class EditorFileSystem : public Node { bool reimport_on_missing_imported_files; + Vector<String> _get_dependencies(const String &p_path); + protected: void _notification(int p_what); static void _bind_methods(); |