]> git.lizzy.rs Git - minetest.git/blobdiff - src/main.cpp
Use numeric indices and raw table access with LUA_REGISTRYINDEX
[minetest.git] / src / main.cpp
index 7223522cc44c61828c025a0b72be2176f7e7bb36..950d30b5a21607c08f8cb182d758d9971c4d6392 100644 (file)
@@ -40,7 +40,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "game.h"
 #include "defaultsettings.h"
 #include "gettext.h"
-#include "profiler.h"
 #include "log.h"
 #include "quicktune.h"
 #include "httpfetch.h"
@@ -154,7 +153,7 @@ int main(int argc, char *argv[])
        log_add_output_maxlev(&main_stderr_log_out, LMT_ACTION);
        log_add_output_all_levs(&main_dstream_no_stderr_log_out);
 
-       log_register_thread("main");
+       log_register_thread("Main");
 
        Settings cmd_args;
        bool cmd_args_ok = get_cmdline_opts(argc, argv, &cmd_args);
@@ -347,7 +346,7 @@ static void print_allowed_options(const OptionList &allowed_options)
 
 static void print_version()
 {
-       dstream << PROJECT_NAME " " << g_version_hash << std::endl;
+       dstream << PROJECT_NAME_C " " << g_version_hash << std::endl;
 #ifndef SERVER
        dstream << "Using Irrlicht " << IRRLICHT_SDK_VERSION << std::endl;
 #endif
@@ -358,7 +357,7 @@ static void list_game_ids()
 {
        std::set<std::string> gameids = getAvailableGameIds();
        for (std::set<std::string>::const_iterator i = gameids.begin();
-                       i != gameids.end(); i++)
+                       i != gameids.end(); ++i)
                dstream << (*i) <<std::endl;
 }