mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #4316 from shenweip/patch-12
Fallback to default path if current directory doesn't exist.
This commit is contained in:
commit
4cc6171cf9
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
|||
general->Get("CurrentDirectory", ¤tDirectory, "");
|
||||
general->Get("ShowDebuggerOnLoad", &bShowDebuggerOnLoad, false);
|
||||
|
||||
if (!File::Exists(currentDirectory))
|
||||
currentDirectory = "";
|
||||
|
||||
std::string defaultLangRegion = "en_US";
|
||||
if (bFirstRun) {
|
||||
std::string langRegion = System_GetProperty(SYSPROP_LANGREGION);
|
||||
|
|
Loading…
Add table
Reference in a new issue