diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-12 18:47:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-12 18:47:07 +0300 |
commit | d88285ef4d2b624a0c6a8ef5c2e157ed0248838e (patch) | |
tree | 21c77124f72c023590f0d1b0426eb9357305201e /src/maingui.cpp | |
parent | 429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff) | |
download | mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.gz mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.bz2 mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.xz mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.zip |
Create logger in unit tests before other code.
This need because now sdl may raise error or assert almost at start.
Diffstat (limited to 'src/maingui.cpp')
-rw-r--r-- | src/maingui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/maingui.cpp b/src/maingui.cpp index bb1abf5ae..fc3df1b98 100644 --- a/src/maingui.cpp +++ b/src/maingui.cpp @@ -52,6 +52,8 @@ PRAGMA48(GCC diagnostic pop) #endif // SDL_VERSIONNUM #ifdef UNITTESTS +#include "logger.h" + #include "utils/cpu.h" #include "utils/sdlhelper.h" #include "resources/dye/dyepalette.h" @@ -151,6 +153,7 @@ int mainGui(int argc, char *argv[]) int main(int argc, char *argv[]) { + logger = new Logger; SDL::initLogger(); VirtFs::init(argv[0]); Cpu::detect(); |