diff --git a/win32/wconfig.cpp b/win32/wconfig.cpp index f85afcba..cb576a01 100644 --- a/win32/wconfig.cpp +++ b/win32/wconfig.cpp @@ -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 diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 36bec98e..98a34e51 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -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 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