mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-03 05:05:14 -06:00
Gracefully exit after headless installation.
This commit is contained in:
parent
b9d027a76c
commit
eafa6a9a25
@ -855,6 +855,11 @@ int run_rpcs3(int argc, char** argv)
|
|||||||
|
|
||||||
parser.process(app->arguments());
|
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.
|
// 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))
|
if (parser.isSet(version_option) || parser.isSet(help_option))
|
||||||
return 0;
|
return 0;
|
||||||
@ -1182,12 +1187,9 @@ int run_rpcs3(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
main_window::InstallPackages(nullptr, {parser.value(installpkg_option)});
|
main_window::InstallPackages(nullptr, {parser.value(installpkg_option)});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto& opt : parser.optionNames())
|
return 0;
|
||||||
{
|
}
|
||||||
sys_log.notice("Option passed via command line: %s %s", opt, parser.value(opt));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parser.isSet(arg_savestate))
|
if (parser.isSet(arg_savestate))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user