diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-07 01:39:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-07 01:56:53 +0300 |
commit | 9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede (patch) | |
tree | f30d5dfa2419260ada62144dc63e1dcb2ee92198 /src/progs/dyecmd | |
parent | bfe9b1eeb587254d92c3ebb338b50ce1e7dfac79 (diff) | |
download | plus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.gz plus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.bz2 plus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.xz plus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.zip |
Add SDL2 errors logging.
Diffstat (limited to 'src/progs/dyecmd')
-rw-r--r-- | src/progs/dyecmd/client.cpp | 3 | ||||
-rw-r--r-- | src/progs/dyecmd/dyemain.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 7f75f4cd5..8685cc024 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -67,8 +67,8 @@ #ifdef ANDROID #include "fs/paths.h" #endif // ANDROID - #include "utils/sdlcheckutils.h" +#include "utils/sdlhelper.h" #include "utils/timer.h" #include "utils/translation/translationmanager.h" @@ -157,6 +157,7 @@ void Client::testsClear() void Client::gameInit() { logger = new Logger; + SDL::initLogger(); initRand(); diff --git a/src/progs/dyecmd/dyemain.cpp b/src/progs/dyecmd/dyemain.cpp index 2217508cc..234e4a600 100644 --- a/src/progs/dyecmd/dyemain.cpp +++ b/src/progs/dyecmd/dyemain.cpp @@ -37,6 +37,7 @@ #include "resources/loaders/imageloader.h" #include "utils/gettext.h" +#include "utils/sdlhelper.h" #include <iostream> @@ -75,6 +76,7 @@ int main(int argc, char **argv) logger = new Logger; logger->setLogToStandardOut(false); + SDL::initLogger(); VirtFs::init(argv[0]); SDL_Init(SDL_INIT_VIDEO); |