aboutsummaryrefslogtreecommitdiff
path: root/base/commandLine.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-10-24 18:34:08 +0000
committerMartin Kiewitz2010-10-24 18:34:08 +0000
commitc9c9eafbbb791d1b754c053aac221979a39216e1 (patch)
tree880ff3133d8ed636b360c1f830fdfc698f403fec /base/commandLine.cpp
parentfa7e8a8eb382c37d35d9166dcd87646811e4a377 (diff)
downloadscummvm-rg350-c9c9eafbbb791d1b754c053aac221979a39216e1.tar.gz
scummvm-rg350-c9c9eafbbb791d1b754c053aac221979a39216e1.tar.bz2
scummvm-rg350-c9c9eafbbb791d1b754c053aac221979a39216e1.zip
SDL/w32: add ability to hide console
feature is currently commented out - waiting till discussion has ended svn-id: r53767
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r--base/commandLine.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 5a45ed74a1..2892d31302 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -219,6 +219,11 @@ void registerDefaults() {
ConfMan.registerDefault("record_file_name", "record.bin");
ConfMan.registerDefault("record_temp_file_name", "record.tmp");
ConfMan.registerDefault("record_time_file_name", "record.time");
+
+#ifdef WIN32
+ // console hiding for win32
+ ConfMan.registerDefault("show_console", false);
+#endif
}
//
@@ -546,6 +551,12 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
END_OPTION
#endif
+#ifdef WIN32
+ // console hiding for win32
+ DO_LONG_OPTION_BOOL("show-console")
+ END_OPTION
+#endif
+
unknownOption:
// If we get till here, the option is unhandled and hence unknown.
usage("Unrecognized option '%s'", argv[i]);