mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
Headless: Honor --nand
ApplyToConfig() set nandRootDirectory from it, but headless then reset it to the memstick's PSP/NAND unconditionally, so --nand did nothing there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24a2f6110d
commit
80e346d802
1 file changed
+6
-1
@@ -1104,7 +1104,12 @@ int main(int argc, const char* argv[]) {
|
||||
g_Config.memStickDirectory = Path(std::string(getenv("HOME"))) / ".ppsspp";
|
||||
#endif
|
||||
}
|
||||
g_Config.nandRootDirectory = GetSysDirectory(DIRECTORY_NAND);
|
||||
// The memstick's NAND, unless --nand says otherwise.
|
||||
if (cmdLineOptions.nand.has_value()) {
|
||||
g_Config.nandRootDirectory = Path(cmdLineOptions.nand.value());
|
||||
} else {
|
||||
g_Config.nandRootDirectory = GetSysDirectory(DIRECTORY_NAND);
|
||||
}
|
||||
coreParameter.nandRoot = g_Config.nandRootDirectory;
|
||||
|
||||
// Most discs carry the firmware they shipped with - this option installs it, if one
|
||||
|
||||
Reference in new issue
Block a user