mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 02:09:05 +02:00
Headless: Default to the app's memory stick on Mac and Linux
Headless used ~/.ppsspp, which nothing else uses, while the app uses ~/.config/ppsspp (or $XDG_CONFIG_HOME/ppsspp on Linux). The derivation is now shared, and the app's default is unchanged. Windows and iOS keep their own. test.py and frametests.py pass a memory stick next to the binary, as Windows headless already defaulted to, so the tests still don't write into the user's memory stick or see its firmware. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
2c19007b61
commit
d68d45a441
7 files changed
+35
-14
No files matched your search
+1
-9
@@ -651,15 +651,7 @@ void NativeInit(int argc, const char *argv[], const CommandLineOptions &cmdLineO
|
||||
#elif PPSSPP_PLATFORM(WINDOWS)
|
||||
// ...
|
||||
#else
|
||||
std::string config;
|
||||
if (getenv("XDG_CONFIG_HOME") != NULL)
|
||||
config = getenv("XDG_CONFIG_HOME");
|
||||
else if (getenv("HOME") != NULL)
|
||||
config = getenv("HOME") + std::string("/.config");
|
||||
else // Just in case
|
||||
config = "./config";
|
||||
|
||||
g_Config.memStickDirectory = Path(config) / "ppsspp";
|
||||
g_Config.memStickDirectory = GetDefaultDesktopMemStickDirectory();
|
||||
if (getenv("HOME") != nullptr) {
|
||||
g_Config.defaultCurrentDirectory = Path(getenv("HOME"));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user