From: Wolfgang Becker Date: Fri, 15 Aug 2008 21:00:47 +0000 (+0000) Subject: * Switch -d was used twice. Script debugger now is -s X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dc9b54f74ced4cb8b995757786e34ecb2e7db8f1;p=supertux.git * Switch -d was used twice. Script debugger now is -s * Default aspect ratio is rest to auto detect. * Fixed numbering in INSTALL. SVN-Revision: 5725 --- diff --git a/INSTALL b/INSTALL index 0958de9c1..dcce18613 100644 --- a/INSTALL +++ b/INSTALL @@ -87,14 +87,14 @@ INSTALLING UNDER LINUX/UNIX USING CMAKE SuperTux, install those first, then try running CMake again. See below for instructions on how to change to standard options. - 2. Type `make' to start the build process. + 4. Type `make' to start the build process. - 3. Type `make install' to install the programs and any data files and + 5. Type `make install' to install the programs and any data files and documentation. (You should be a root user on Linux systems. You can become a root user with the `su' command or by using `sudo make install') - 4. The game should work now and you can remove the source directory. + 6. The game should work now and you can remove the source directory. You can customize the build process by setting additional options for CMake. The easiest way to do this is to use run `ccmake ..' instead of `cmake ..' diff --git a/src/gameconfig.cpp b/src/gameconfig.cpp index 728b2b838..b90551bd1 100644 --- a/src/gameconfig.cpp +++ b/src/gameconfig.cpp @@ -54,8 +54,8 @@ Config::Config() magnification = 1.0f; - aspect_width = 4; - aspect_height = 3; + aspect_width = 0; // auto detect + aspect_height = 0; enable_script_debugger = false; diff --git a/src/main.cpp b/src/main.cpp index d4da71581..8a8dc7c66 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,14 +225,15 @@ static void print_usage(const char* argv0) " -d, --default Reset video settings to default values\n" " --disable-sfx Disable sound effects\n" " --disable-music Disable music\n" - " --help Show this help message\n" - " --version Display SuperTux version and quit\n" + " -h, --help Show this help message\n" + " -v, --version Show 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" + " -s, --debug-scripts Enable script debugger.\n" "\n")); } @@ -244,7 +245,7 @@ static bool pre_parse_commandline(int argc, char** argv) for(int i = 1; i < argc; ++i) { std::string arg = argv[i]; - if(arg == "--version") { + if(arg == "--version" || arg == "-v") { std::cout << PACKAGE_NAME << " " << PACKAGE_VERSION << std::endl; return true; } @@ -261,7 +262,7 @@ static bool parse_commandline(int argc, char** argv) for(int i = 1; i < argc; ++i) { std::string arg = argv[i]; - if(arg == "--help") { + if(arg == "--help" || arg == "-h") { print_usage(argv[0]); return true; } else if(arg == "--fullscreen" || arg == "-f") { @@ -275,8 +276,8 @@ static bool parse_commandline(int argc, char** argv) config->fullscreen_width = 800; config->fullscreen_height = 600; - config->aspect_width = 4; - config->aspect_height = 3; + config->aspect_width = 0; // auto detect + config->aspect_height = 0; } else if(arg == "--window" || arg == "-w") { config->use_fullscreen = false; @@ -364,7 +365,7 @@ static bool parse_commandline(int argc, char** argv) throw std::runtime_error("Need to specify a demo filename"); } config->record_demo = argv[++i]; - } else if(arg == "-d") { + } else if(arg == "--debug-scripts" || arg == "-s") { config->enable_script_debugger = true; } else if(arg[0] != '-') { config->start_level = arg;