On desktop, change an empty current directory to "/" on startup.

Just avoids some confusion.
This commit is contained in:
Henrik Rydgård 2021-11-20 14:47:59 +01:00
parent b6e7fe1aaf
commit 98cd023cf9

View file

@ -592,6 +592,12 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
}
#endif
#if (PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)) || PPSSPP_PLATFORM(MAC)
if (g_Config.currentDirectory.empty()) {
g_Config.currentDirectory = Path("/");
}
#endif
if (cache_dir && strlen(cache_dir)) {
g_Config.appCacheDirectory = Path(cache_dir);
DiskCachingFileLoaderCache::SetCacheDir(g_Config.appCacheDirectory);