summaryrefslogtreecommitdiff
path: root/src/progs/manaplus
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-07 01:39:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-07 01:56:53 +0300
commit9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede (patch)
treef30d5dfa2419260ada62144dc63e1dcb2ee92198 /src/progs/manaplus
parentbfe9b1eeb587254d92c3ebb338b50ce1e7dfac79 (diff)
downloadmv-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.gz
mv-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.bz2
mv-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.xz
mv-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.zip
Add SDL2 errors logging.
Diffstat (limited to 'src/progs/manaplus')
-rw-r--r--src/progs/manaplus/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 6e245029d..a3e30b86a 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -125,6 +125,7 @@
#include "fs/paths.h"
#endif // ANDROID
#include "utils/sdlcheckutils.h"
+#include "utils/sdlhelper.h"
#include "utils/timer.h"
#include "utils/translation/translationmanager.h"
@@ -262,6 +263,7 @@ void Client::testsInit()
{
initRand();
logger = new Logger;
+ SDL::initLogger();
Dirs::initLocalDataDir();
Dirs::initTempDir();
Dirs::initConfigDir();
@@ -272,6 +274,7 @@ void Client::testsInit()
void Client::gameInit()
{
logger = new Logger;
+ SDL::initLogger();
initRand();