aboutsummaryrefslogtreecommitdiff
path: root/base/commandLine.cpp
diff options
context:
space:
mode:
authorTravis Howell2011-06-30 11:17:58 +1000
committerTravis Howell2011-06-30 11:17:58 +1000
commiteae06884b6c6da23b7932ceba65e435d9be6ef82 (patch)
treec7b3738340f144bf23ae0bac21bbdc5de743c762 /base/commandLine.cpp
parenteec84253f0e5d24bd37f5a8fa88b29df6da45f83 (diff)
downloadscummvm-rg350-eae06884b6c6da23b7932ceba65e435d9be6ef82.tar.gz
scummvm-rg350-eae06884b6c6da23b7932ceba65e435d9be6ef82.tar.bz2
scummvm-rg350-eae06884b6c6da23b7932ceba65e435d9be6ef82.zip
WIN32: Add option to disable the console window, keeping the current default of enabling the console window.
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r--base/commandLine.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 1cd3643f5a..a4fefc413a 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -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.