mirror of https://github.com/snes9xgit/snes9x.git
win32: print additional command line options, also react to -h /?
This commit is contained in:
parent
6af12f272f
commit
9e871a29a4
|
@ -276,6 +276,13 @@ const TCHAR* WinParseCommandLineAndLoadConfigFile (TCHAR *line)
|
|||
ReleaseMutex(configMutex);
|
||||
CloseHandle(configMutex);
|
||||
|
||||
// check some additional common help switches
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if(!strcasecmp(parameters[i], "/?") || !strcasecmp(parameters[i], "-h"))
|
||||
S9xUsage();
|
||||
}
|
||||
|
||||
const char* rf = S9xParseArgs (parameters, count);
|
||||
|
||||
if(rf) // save rom_filename as TCHAR if available
|
||||
|
|
|
@ -2690,6 +2690,12 @@ BOOL WinInit( HINSTANCE hInstance)
|
|||
|
||||
void S9xExtraUsage ()
|
||||
{
|
||||
S9xMessage(S9X_INFO, S9X_USAGE, "Windows port specific:");
|
||||
S9xMessage(S9X_INFO, S9X_USAGE, "-fullscreen Start in fullscreen mode");
|
||||
S9xMessage(S9X_INFO, S9X_USAGE, "-hidemenu Initially hide the GUI menu");
|
||||
S9xMessage(S9X_INFO, S9X_USAGE, "-restore Reset all settings to default");
|
||||
S9xMessage(S9X_INFO, S9X_USAGE, "-cartb <filename> Specify the second cart for multicart, also triggers multicart");
|
||||
MessageBox(NULL, _T("Snes9x command line options have been written to stdout.txt in the same folder as snes9x.exe"), _T("Command line options"), MB_OK | MB_ICONINFORMATION);
|
||||
}
|
||||
|
||||
// handles joystick hotkey presses
|
||||
|
|
Loading…
Reference in New Issue