From 98cd023cf9adc06d592747641a6e7828498f9b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 20 Nov 2021 14:47:59 +0100 Subject: [PATCH] On desktop, change an empty current directory to "/" on startup. Just avoids some confusion. --- UI/NativeApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index ce00648c6b..d69650df7b 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -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);