Qt: Add command line parameter to force early console log

This commit is contained in:
Connor McLaughlin 2022-05-30 00:18:09 +10:00 committed by refractionpcsx2
parent a5124b118b
commit 2928837b76
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,7 @@ static void PrintCommandLineHelp(const char* progname)
std::fprintf(stderr, " -statefile <filename>: Loads state from the specified filename.\n");
std::fprintf(stderr, " -fullscreen: Enters fullscreen mode immediately after starting.\n");
std::fprintf(stderr, " -nofullscreen: Prevents fullscreen mode from triggering if enabled.\n");
std::fprintf(stderr, " -earlyconsolelog: Forces logging of early console messages to console.\n");
std::fprintf(stderr, " --: Signals that no more arguments will follow and the remaining\n"
" parameters make up the filename. Use when the filename contains\n"
" spaces or starts with a dash.\n");
@ -140,6 +141,11 @@ static bool ParseCommandLineOptions(int argc, char* argv[], std::shared_ptr<VMBo
AutoBoot(autoboot)->fullscreen = false;
continue;
}
else if (CHECK_ARG("-earlyconsolelog"))
{
QtHost::InitializeEarlyConsole();
continue;
}
else if (CHECK_ARG("--"))
{
no_more_args = true;