#include "settings.h"
#include "profiler.h"
#include "log.h"
+#include "nodedef.h" // For init_contentfeatures
+#include "content_mapnode.h" // For content_mapnode_init
/*
Settings.
Profiler main_profiler;
Profiler *g_profiler = &main_profiler;
-// A dummy thing
-ITextureSource *g_texturesource = NULL;
-
/*
Debug streams
*/
return porting::getTimeMs();
}
-class DstreamLogOutput: public ILogOutput
+class StderrLogOutput: public ILogOutput
{
public:
/* line: Full line with timestamp, level and thread */
void printLog(const std::string &line)
{
- dstream<<line<<std::endl;
+ std::cerr<<line<<std::endl;
}
-} main_dstream_log_out;
+} main_stderr_log_out;
class DstreamNoStderrLogOutput: public ILogOutput
{
Initialization
*/
- log_add_output_maxlev(&main_dstream_log_out, LMT_ACTION);
+ 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");
}
if(cmd_args.getFlag("info-on-stderr"))
- log_add_output(&main_dstream_log_out, LMT_INFO);
+ log_add_output(&main_stderr_log_out, LMT_INFO);
/*
Basic initialization
// Initialize stuff
- init_mapnode();
init_mineral();
/*