Make invalid arguments not abort loading

The previous behavior was behavior that only CLI programs usually have;
NOT games. The game refusing to launch due to unknown arguments is a
headache for switching branches (which may add arguments), and some
esoteric launcher setups. This commit resolves those.

Due to the way this code is written, it will only warn about the last
invalid argument; a complete overhaul could be done eventually, but this
is okay for now.
This commit is contained in:
NyakoFox authored and Ethan Lee committed 2026-10-18 15:00:06 -04:00
1 parent 42caa232fa
commit 8a76433eec
1 file changed
+2 -6
+2 -6
View File
@@ -554,15 +554,11 @@ int main(int argc, char *argv[])
if (invalid_arg > 0)
{
vlog_error("Error: invalid option: %s", argv[invalid_arg]);
keep_console_open(open_console);
VVV_exit(1);
vlog_warn("Warning: invalid option: %s", argv[invalid_arg]);
}
else if (invalid_partial_arg > 0)
{
vlog_error("%s option requires one argument.", argv[invalid_partial_arg]);
keep_console_open(open_console);
VVV_exit(1);
vlog_warn("%s option requires one argument.", argv[invalid_partial_arg]);
}
if (print_version)