diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/globals.cpp | 5 | ||||
-rw-r--r-- | core/path_remap.cpp | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/core/globals.cpp b/core/globals.cpp index a4c24a6cc8..96daf55276 100644 --- a/core/globals.cpp +++ b/core/globals.cpp @@ -166,8 +166,10 @@ bool GlobalConfig::_get(const StringName& p_name,Variant &r_ret) const { _THREAD_SAFE_METHOD_ - if (!props.has(p_name)) + if (!props.has(p_name)) { + print_line("WARNING: not found: "+String(p_name)); return false; + } r_ret=props[p_name].variant; return true; @@ -922,6 +924,7 @@ GlobalConfig::GlobalConfig() { GLOBAL_DEF("application/main_scene",""); custom_prop_info["application/main_scene"]=PropertyInfo(Variant::STRING,"application/main_scene",PROPERTY_HINT_FILE,"tscn,scn,xscn,xml,res"); GLOBAL_DEF("application/disable_stdout",false); + GLOBAL_DEF("application/disable_stderr",false); GLOBAL_DEF("application/use_shared_user_dir",true); diff --git a/core/path_remap.cpp b/core/path_remap.cpp index 42383e212d..646c1c497b 100644 --- a/core/path_remap.cpp +++ b/core/path_remap.cpp @@ -124,7 +124,10 @@ void PathRemap::clear_remaps() { void PathRemap::load_remaps() { // default remaps first - PoolVector<String> remaps = GlobalConfig::get_singleton()->get("remap/all"); + PoolVector<String> remaps; + if (GlobalConfig::get_singleton()->has("remap/all")) { + remaps = GlobalConfig::get_singleton()->get("remap/all"); + } { int rlen = remaps.size(); @@ -141,7 +144,11 @@ void PathRemap::load_remaps() { // platform remaps second, so override - remaps = GlobalConfig::get_singleton()->get("remap/"+OS::get_singleton()->get_name()); + if (GlobalConfig::get_singleton()->has("remap/"+OS::get_singleton()->get_name())) { + remaps = GlobalConfig::get_singleton()->get("remap/"+OS::get_singleton()->get_name()); + } else { + remaps.resize(0); + } //remaps = Globals::get_singleton()->get("remap/PSP"); { int rlen = remaps.size(); |