mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Add a --root= command line argument to override what host0: is mounted to.
Fixes #20191
This commit is contained in:
1 parent
656db38ebc
commit
b64d7b217f
4 files changed
+9
-2
No files matched your search
@@ -530,6 +530,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
forceLogLevel = true;
|
||||
};
|
||||
|
||||
// TODO: Need a much better command line argument parser.
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (argv[i][0] == '-') {
|
||||
#if defined(__APPLE__)
|
||||
@@ -581,6 +583,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
g_Config.iForceFullScreen = 1;
|
||||
System_ToggleFullscreenState("1");
|
||||
}
|
||||
if (!strncmp(argv[i], "--root=", strlen("--root=")) && strlen(argv[i]) > strlen("--root=")) {
|
||||
g_Config.mountRoot = Path(argv[i] + strlen("--root="));
|
||||
}
|
||||
if (!strcmp(argv[i], "--windowed")) {
|
||||
g_Config.iForceFullScreen = 0;
|
||||
System_ToggleFullscreenState("0");
|
||||
|
||||
Reference in new issue
Block a user