summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-19 21:05:16 +0100
committerkobewi <kobewi4e@gmail.com>2023-02-20 17:39:38 +0100
commitff42cb0d1e8dda98b7657fd5e3ed6be16f0d280e (patch)
tree3209ce274e20cc25210648d0c3d32bd4538cf758 /core/config
parent6f64349bfe42b795a6c50e9c2093d38e7a992e7a (diff)
Fix missing directories when exporting from cmd
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp5
-rw-r--r--core/config/project_settings.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index f0de22f2ef..56e9057a2a 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -656,6 +656,7 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack, bo
Compression::gzip_level = GLOBAL_GET("compression/formats/gzip/compression_level");
+ project_loaded = err == OK;
return err;
}
@@ -1106,6 +1107,10 @@ bool ProjectSettings::is_using_datapack() const {
return using_datapack;
}
+bool ProjectSettings::is_project_loaded() const {
+ return project_loaded;
+}
+
bool ProjectSettings::_property_can_revert(const StringName &p_name) const {
if (!props.has(p_name)) {
return false;
diff --git a/core/config/project_settings.h b/core/config/project_settings.h
index 50cb274831..a0249ef267 100644
--- a/core/config/project_settings.h
+++ b/core/config/project_settings.h
@@ -95,6 +95,7 @@ protected:
String resource_path;
HashMap<StringName, PropertyInfo> custom_prop_info;
bool using_datapack = false;
+ bool project_loaded = false;
List<String> input_presets;
HashSet<String> custom_features;
@@ -190,6 +191,7 @@ public:
Variant get_setting_with_override(const StringName &p_name) const;
bool is_using_datapack() const;
+ bool is_project_loaded() const;
bool has_custom_feature(const String &p_feature) const;