Add a --root= command line argument to override what host0: is mounted to.

Fixes #20191
This commit is contained in:
Henrik Rydgård committed 2026-01-06 20:41:35 +01:00
1 parent 656db38ebc
commit b64d7b217f
4 files changed
+9 -2

No files matched your search

+5
View File
@@ -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");