From 9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Sep 2017 01:39:55 +0300 Subject: Add SDL2 errors logging. --- src/maingui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/maingui.cpp') diff --git a/src/maingui.cpp b/src/maingui.cpp index 205d8c6d1..4279472bd 100644 --- a/src/maingui.cpp +++ b/src/maingui.cpp @@ -64,6 +64,7 @@ PRAGMA48(GCC diagnostic pop) #endif // UNITTESTS_DOCTEST #else // UNITTESTS #include "utils/xml.h" +#include "utils/sdlhelper.h" #endif // UNITTESTS #define SDL_IMAGE_COMPILEDVERSION \ @@ -150,6 +151,7 @@ int mainGui(int argc, char *argv[]) int main(int argc, char *argv[]) { + SDL::initLogger(); VirtFs::init(argv[0]); Cpu::detect(); DyePalette::initFunctions(); -- cgit v1.2.3-60-g2f50