From c8a99404e8c52a59127bdd634b13f10f7ebb19ab Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Thu, 8 May 2014 00:58:00 +0200 Subject: Map irrlicht log level to minetest. Allow write them to debug file. --- src/main.cpp | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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); /* -- cgit v1.2.3