From eafa6a9a255f626804b6029eef6a9c8d86fa9b3b Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 30 May 2026 18:34:38 +0200 Subject: [PATCH] Gracefully exit after headless installation. --- rpcs3/rpcs3.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rpcs3/rpcs3.cpp b/rpcs3/rpcs3.cpp index 810318fa58..3bf6259a4a 100644 --- a/rpcs3/rpcs3.cpp +++ b/rpcs3/rpcs3.cpp @@ -855,6 +855,11 @@ int run_rpcs3(int argc, char** argv) parser.process(app->arguments()); + for (const auto& opt : parser.optionNames()) + { + sys_log.notice("Option passed via command line: %s %s", opt, parser.value(opt)); + } + // Don't start up the full rpcs3 gui if we just want the version or help. if (parser.isSet(version_option) || parser.isSet(help_option)) return 0; @@ -1182,12 +1187,9 @@ int run_rpcs3(int argc, char** argv) { main_window::InstallPackages(nullptr, {parser.value(installpkg_option)}); } - } - } - for (const auto& opt : parser.optionNames()) - { - sys_log.notice("Option passed via command line: %s %s", opt, parser.value(opt)); + return 0; + } } if (parser.isSet(arg_savestate))