From 8a76433eec6dc72f4afdde26c2921d35c303a0de Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Sun, 18 Oct 2026 02:50:14 -0300 Subject: [PATCH] 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. --- desktop_version/src/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index f087cc40..54b1a8e6 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -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)