WIN32: Add option to disable the console window, keeping the current default of enabling the console window.
This commit is contained in:
parent
eec84253f0
commit
eae06884b6
5 changed files with 31 additions and 52 deletions
|
@ -65,6 +65,9 @@ static const char HELP_STRING[] =
|
|||
" -z, --list-games Display list of supported games and exit\n"
|
||||
" -t, --list-targets Display list of configured targets and exit\n"
|
||||
" --list-saves=TARGET Display a list of savegames for the game (TARGET) specified\n"
|
||||
#if defined (WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
|
||||
" --console Enable the console window (default:enabled)\n"
|
||||
#endif
|
||||
"\n"
|
||||
" -c, --config=CONFIG Use alternate configuration file\n"
|
||||
" -p, --path=PATH Path to where the game is installed\n"
|
||||
|
@ -231,13 +234,6 @@ void registerDefaults() {
|
|||
ConfMan.registerDefault("record_temp_file_name", "record.tmp");
|
||||
ConfMan.registerDefault("record_time_file_name", "record.time");
|
||||
|
||||
#if 0
|
||||
// NEW CODE TO HIDE CONSOLE FOR WIN32
|
||||
#ifdef WIN32
|
||||
// console hiding for win32
|
||||
ConfMan.registerDefault("show_console", false);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -554,14 +550,11 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
|||
END_OPTION
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// NEW CODE TO HIDE CONSOLE FOR WIN32
|
||||
#ifdef WIN32
|
||||
// console hiding for win32
|
||||
DO_LONG_OPTION_BOOL("show-console")
|
||||
#if defined (WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
|
||||
// Optional console window on Windows (default: enabled)
|
||||
DO_LONG_OPTION_BOOL("console")
|
||||
END_OPTION
|
||||
#endif
|
||||
#endif
|
||||
|
||||
unknownOption:
|
||||
// If we get till here, the option is unhandled and hence unknown.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue