mirror of https://github.com/PCSX2/pcsx2.git
Qt: Add command line parameter to force early console log
This commit is contained in:
parent
a5124b118b
commit
2928837b76
|
@ -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, " -statefile <filename>: Loads state from the specified filename.\n");
|
||||||
std::fprintf(stderr, " -fullscreen: Enters fullscreen mode immediately after starting.\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, " -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"
|
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"
|
" parameters make up the filename. Use when the filename contains\n"
|
||||||
" spaces or starts with a dash.\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;
|
AutoBoot(autoboot)->fullscreen = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (CHECK_ARG("-earlyconsolelog"))
|
||||||
|
{
|
||||||
|
QtHost::InitializeEarlyConsole();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
else if (CHECK_ARG("--"))
|
else if (CHECK_ARG("--"))
|
||||||
{
|
{
|
||||||
no_more_args = true;
|
no_more_args = true;
|
||||||
|
|
Loading…
Reference in New Issue