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-Tag: 0.4.10~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c8a99404e8c52a59127bdd634b13f10f7ebb19ab;p=oweals%2Fminetest.git Map irrlicht log level to minetest. Allow write them to debug file. --- diff --git a/src/main.cpp b/src/main.cpp index 08e8c1ee2..0531a8540 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); /*