Commented out debug statements again
[oweals/minetest.git] / src / servermain.cpp
index 907d0d2db56a77cc7d06bf3af6d83d3733d00a92..dc41720fb2ed44bdebbb796ed98a22af5f0fbd11 100644 (file)
@@ -69,6 +69,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "materials.h"
 #include "config.h"
 #include "mineral.h"
+#include "filesys.h"
 
 /*
        Settings.
@@ -139,6 +140,9 @@ int main(int argc, char *argv[])
        // Initialize porting::path_data and porting::path_userdata
        porting::initializePaths();
 
+       // Create user data directory
+       fs::CreateDir(porting::path_userdata);
+       
        // Initialize debug streams
 #ifdef RUN_IN_PLACE
        std::string debugfile = DEBUGFILE;
@@ -152,13 +156,13 @@ int main(int argc, char *argv[])
        DSTACK(__FUNCTION_NAME);
 
        // Init material properties table
-       initializeMaterialProperties();
+       //initializeMaterialProperties();
 
        // Debug handler
        BEGIN_DEBUG_EXCEPTION_HANDLER
 
        // Print startup message
-       dstream<<DTIME<<"minetest-c55"
+       dstream<<DTIME<<PROJECT_NAME <<
                        " with SER_FMT_VER_HIGHEST="<<(int)SER_FMT_VER_HIGHEST
                        <<", "<<BUILD_INFO
                        <<std::endl;
@@ -319,7 +323,7 @@ int main(int argc, char *argv[])
                map_dir = g_settings.get("map-dir");
        
        // Create server
-       Server server(map_dir.c_str());
+       Server server(map_dir.c_str(), configpath);
        server.start(port);
 
        // Run server