X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmain.cpp;h=1a07961092fbb467fd8dd80439a015d0824d6698;hb=339968d0eb222f5cad1397580631ab44acf40b10;hp=5936bad2aa37f721832707025d2c78928ea2b4a2;hpb=959f514b78262ae6b276821bc61864fa6967b97c;p=supertux.git diff --git a/src/main.cpp b/src/main.cpp index 5936bad2a..1a0796109 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -166,7 +166,7 @@ static void init_physfs(const char* argv0) if(f) { fclose(f); if(!PHYSFS_addToSearchPath(dir.c_str(), 1)) { - msg_warning << "Couldn't add '" << dir << "' to physfs searchpath: " << PHYSFS_getLastError() << std::endl; + log_warning << "Couldn't add '" << dir << "' to physfs searchpath: " << PHYSFS_getLastError() << std::endl; } else { sourcedir = true; } @@ -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; } }