From: RealBadAngel Date: Wed, 7 May 2014 22:58:00 +0000 (+0200) Subject: Map irrlicht log level to minetest. Allow write them to debug file. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c8a99404e8c52a59127bdd634b13f10f7ebb19ab;p=zefram%2Fminetest%2Fminetest_engine.git Map irrlicht log level to minetest. Allow write them to debug file. --- diff --git a/src/main.cpp b/src/main.cpp index 08e8c1ee..0531a854 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -304,6 +304,11 @@ public: } } } + if(event.EventType == irr::EET_LOG_TEXT_EVENT) + { + dstream<<"Irrlicht log: "<getLogger(); + irr_logger->setLogLevel(irr_log_level[loglevel]); + porting::initIrrlicht(device); /*