Index: binaries/data/mods/public/gui/credits/texts/programming.json =================================================================== --- binaries/data/mods/public/gui/credits/texts/programming.json +++ binaries/data/mods/public/gui/credits/texts/programming.json @@ -134,6 +134,7 @@ {"nick": "lafferjm", "name": "Justin Lafferty"}, {"nick": "LeanderH", "name": "Leander Hemelhof"}, {"nick": "leper", "name": "Georg Kilzer"}, + {"nick": "Link Mauve", "name": "Emmanuel Gil Peyrot"}, {"nick": "LittleDev"}, {"nick": "livingaftermidnight", "name": "Will Dull"}, {"nick": "Louhike"}, Index: binaries/system/readme.txt =================================================================== --- binaries/system/readme.txt +++ binaries/system/readme.txt @@ -56,6 +56,7 @@ PATHS install mods located at PATHS. For instance: "./pyrogenesis mod1.pyromod mod2.zip" Advanced / diagnostic: +-help print this help and exit -version print the version of the engine and exit -dumpSchema creates a file entity.rng in the working directory, containing complete entity XML schema, used by various analysis tools Index: build/premake/premake5.lua =================================================================== --- build/premake/premake5.lua +++ build/premake/premake5.lua @@ -959,6 +959,16 @@ dependson { "Collada" } + local input = io.open(rootdir.."/binaries/system/readme.txt", "r") + local output = io.open(source_root.."/help.h", "w") + output:write("char const *help_string = ") + for line in input:lines() do + output:write("\""..line:gsub("\\", "\\\\"):gsub("\"", "\\\"").."\\n\"\n") + end + input:close() + output:write(";") + output:close() + -- Platform Specifics if os.istarget("windows") then Index: source/main.cpp =================================================================== --- source/main.cpp +++ source/main.cpp @@ -42,6 +42,7 @@ #include "lib/timer.h" #include "lib/external_libraries/libsdl.h" +#include "help.h" #include "ps/ArchiveBuilder.h" #include "ps/CConsole.h" #include "ps/CLogger.h" @@ -474,6 +475,12 @@ return; } + if (args.Has("help")) + { + debug_printf(help_string); + return; + } + if (args.Has("autostart-nonvisual") && args.Get("autostart").empty()) { LOGERROR("-autostart-nonvisual cant be used alone. A map with -autostart=\"TYPEDIR/MAPNAME\" is needed.");