Fallback to default path if current directory doesn't exist.

This commit is contained in:
shenweip committed 2013-10-26 00:44:19 +08:00
1 parent 36d433cfc3
commit 6a149200b6
1 file changed
+3
+3
View File
@@ -59,6 +59,9 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename)
general->Get("CurrentDirectory", &currentDirectory, "");
general->Get("ShowDebuggerOnLoad", &bShowDebuggerOnLoad, false);
if (!File::Exists(currentDirectory))
currentDirectory = "";
std::string defaultLangRegion = "en_US";
if (bFirstRun) {
std::string langRegion = System_GetProperty(SYSPROP_LANGREGION);