summaryrefslogtreecommitdiffstats
path: root/core/globals.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-31 00:31:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-31 00:31:00 -0300
commitfd836cad270f7eb9645356cd583c8f11bf737b0f (patch)
treecf3c430537b27cf0dc902e6a1c12906b93771611 /core/globals.cpp
parent9bf7adfc1fcf1e57b5279f3d56983bc222366562 (diff)
downloadredot-engine-fd836cad270f7eb9645356cd583c8f11bf737b0f.tar.gz
-Ensure .tscn and .tres always save in a deterministic way, fixes #2495
-Scene edit state is saved outside the scene now, to avoid changes .tscn files when nothing really changed -Created a VariantWriter helper to unify all variant to text writing -Moved SceneFormatText writing to VariantWriter -Moved ConfigFile to use VariantWriter and VariantParser, added compatibility mode for old .cfg files that use engine.cfg format
Diffstat (limited to 'core/globals.cpp')
-rw-r--r--core/globals.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/globals.cpp b/core/globals.cpp
index eed37c2308..b48f34d2df 100644
--- a/core/globals.cpp
+++ b/core/globals.cpp
@@ -304,6 +304,7 @@ Error Globals::setup(const String& p_path,const String & p_main_pack) {
return OK;
}
+
if (OS::get_singleton()->get_resource_dir()!="") {
//OS will call Globals->get_resource_path which will be empty if not overriden!
//if the OS would rather use somewhere else, then it will not be empty.