MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / PrintCommandLineHelp

Function PrintCommandLineHelp

pcsx2-gsrunner/Main.cpp:490–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490static void PrintCommandLineHelp(const char* progname)
491{
492 PrintCommandLineVersion();
493 std::fprintf(stderr, "Usage: %s [parameters] [--] [filename]\n", progname);
494 std::fprintf(stderr, "\n");
495 std::fprintf(stderr, " -help: Displays this information and exits.\n");
496 std::fprintf(stderr, " -version: Displays version information and exits.\n");
497 std::fprintf(stderr, " -dumpdir <dir>: Frame dump directory (will be dumped as filename_frameN.png).\n");
498 std::fprintf(stderr, " -dump [rt|tex|z|f|a|i|tr|ds|fs|hw]: Enabling dumping of render target, texture, z buffer, frame, "
499 "alphas, and info (context, vertices, list of transfers), transfers images, draw stats, frame stats, HW config, respectively, per draw. Generates lots of data.\n");
500 std::fprintf(stderr, " -dumprange N[,L,B]: Start dumping from draw N (base 0), stops after L draws, and only "
501 "those draws that are multiples of B (intersection of -dumprange and -dumprangef used)."
502 "Defaults to 0,-1,1 (all draws). Only used if -dump used.\n");
503 std::fprintf(stderr, " -dumprangef NF[,LF,BF]: Start dumping from frame NF (base 0), stops after LF frames, "
504 "and only those frames that are multiples of BF (intersection of -dumprange and -dumprangef used).\n"
505 "Defaults to 0,-1,1 (all frames). Only used if -dump is used.\n");
506 std::fprintf(stderr, " -loop <count>: Loops dump playback N times. Defaults to 1. 0 will loop infinitely.\n");
507 std::fprintf(stderr, " -renderer <renderer>: Sets the graphics renderer. Defaults to Auto.\n");
508 std::fprintf(stderr, " -swthreads <threads>: Sets the number of threads for the software renderer.\n");
509 std::fprintf(stderr, " -window: Forces a window to be displayed.\n");
510 std::fprintf(stderr, " -surfaceless: Disables showing a window.\n");
511 std::fprintf(stderr, " -logfile <filename>: Writes emu log to filename.\n");
512 std::fprintf(stderr, " -noshadercache: Disables the shader cache (useful for parallel runs).\n");
513 std::fprintf(stderr, " -perf: Enable frame timing performance stats.\n");
514 std::fprintf(stderr, " --: Signals that no more arguments will follow and the remaining\n"
515 " parameters make up the filename. Use when the filename contains\n"
516 " spaces or starts with a dash.\n");
517 std::fprintf(stderr, "\n");
518}
519
520void GSRunner::InitializeConsole()
521{

Callers 2

ParseCommandLineArgsMethod · 0.85

Calls 2

PrintCommandLineVersionFunction · 0.85
fprintfFunction · 0.85

Tested by

no test coverage detected