mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-16 15:35:46 -04:00
System: Add -exe parameter for overriding boot executable
Lets you re-use a disc image, but boot a different file.
This commit is contained in:
@ -1883,6 +1883,7 @@ void QtHost::PrintCommandLineHelp(const char* progname)
|
||||
" a global state will be loaded.\n");
|
||||
std::fprintf(stderr, " -statefile <filename>: Loads state from the specified filename.\n"
|
||||
" No boot filename is required with this option.\n");
|
||||
std::fprintf(stderr, " -exe <filename>: Boot the specified exe instead of loading from disc.\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, " -nogui: Disables main window from being shown, exits on shutdown.\n");
|
||||
@ -1985,6 +1986,12 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app,
|
||||
Log_InfoPrintf("Command Line: Loading state file: '%s'", autoboot->save_state.c_str());
|
||||
continue;
|
||||
}
|
||||
else if (CHECK_ARG_PARAM("-exe"))
|
||||
{
|
||||
AutoBoot(autoboot)->override_exe = args[++i].toStdString();
|
||||
Log_InfoPrintf("Command Line: Overriding EXE file: '%s'", autoboot->override_exe.c_str());
|
||||
continue;
|
||||
}
|
||||
else if (CHECK_ARG("-fullscreen"))
|
||||
{
|
||||
Log_InfoPrintf("Command Line: Using fullscreen.");
|
||||
|
Reference in New Issue
Block a user