X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fmain.cpp;h=4ff4ebc29d788e0063ef18e70bbe2b0e1b44686b;hb=f8b5a2099dbe702e15dc5d010c7bc2e545b9cd74;hp=c50e893b67ef572a4457bd61fcc4dcd3d36167b6;hpb=1a2ba15f8d736428892d2fae8206a1a51eb11c9f;p=lugaru.git diff --git a/Source/main.cpp b/Source/main.cpp index c50e893..4ff4ebc 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -581,6 +581,7 @@ const option::Descriptor usage[] = {SOUND, OPENAL_OUTPUT_OSS, "", "force-oss", option::Arg::None, " --force-oss Force use of OSS back-end." }, {OPENALINFO, 0, "", "openal-info", option::Arg::None, " --openal-info Print info about OpenAL at launch." }, {SHOWRESOLUTIONS, 0, "", "showresolutions", option::Arg::None, " --showresolutions List the resolutions found by SDL at launch." }, + {DEBUG, 0, "d", "debug", option::Arg::None, " -d, --debug Activates console, level editor and debug information." }, {0,0,0,0,0,0} }; @@ -616,6 +617,8 @@ int main(int argc, char **argv) return 1; } + debugmode = commandLineOptions[DEBUG]; + // !!! FIXME: we could use a Win32 API for this. --ryan. #ifndef WIN32 chdirToAppPath(argv[0]);