From: Wolfgang Becker Date: Mon, 1 Jan 2007 19:35:08 +0000 (+0000) Subject: Disable scripting console and fps display via command line. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=09163ba404c6a1a43c03f8f84c23322de31099f4;p=supertux.git Disable scripting console and fps display via command line. SVN-Revision: 4520 --- diff --git a/configure.ac b/configure.ac index cf6e6594e..5b5d84345 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ dnl =========================================================================== dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.54]) -AC_INIT(supertux, 0.3.0) +AC_INIT(supertux, 0.3.0-SVN) AC_CONFIG_SRCDIR([src/main.cpp]) AC_CONFIG_AUX_DIR([mk/autoconf]) AC_CANONICAL_TARGET diff --git a/src/main.cpp b/src/main.cpp index ee810cddc..1a0796109 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -215,7 +215,9 @@ static void print_usage(const char* argv0) " --help Show this help message\n" " --version Display SuperTux version and quit\n" " --console Enable ingame scripting console\n" + " --noconsole Disable ingame scripting console\n" " --show-fps Display framerate in levels\n" + " --no-show-fps Do not display framerate in levels\n" " --record-demo FILE LEVEL Record a demo to FILE\n" " --play-demo FILE LEVEL Play a recorded demo\n" "\n")); @@ -265,8 +267,12 @@ static bool parse_commandline(int argc, char** argv) } } else if(arg == "--show-fps") { config->show_fps = true; + } else if(arg == "--no-show-fps") { + config->show_fps = false; } else if(arg == "--console") { config->console_enabled = true; + } else if(arg == "--noconsole") { + config->console_enabled = false; } else if(arg == "--disable-sfx") { config->sound_enabled = false; } else if(arg == "--disable-music") { @@ -289,6 +295,7 @@ static bool parse_commandline(int argc, char** argv) config->start_level = arg; } else { log_warning << "Unknown option '" << arg << "'. Use --help to see a list of options" << std::endl; + return true; } }