summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sdl2helper.cpp6
-rw-r--r--src/utils/sdl2helper.h2
-rw-r--r--src/utils/sdlhelper.cpp4
-rw-r--r--src/utils/sdlhelper.h2
4 files changed, 14 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index d7df14af1..4f99dc512 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -25,6 +25,7 @@
#include "logger.h"
#include "utils/foreach.h"
+#include "utils/sdl2logger.h"
#include "utils/stringutils.h"
PRAGMA48(GCC diagnostic push)
@@ -182,4 +183,9 @@ void SDL::makeCurrentContext(void *const context A_UNUSED)
{
}
+void SDL::initLogger()
+{
+ SDL2Logger::init();
+}
+
#endif // USE_SDL2
diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h
index 70d3ffa90..04a258014 100644
--- a/src/utils/sdl2helper.h
+++ b/src/utils/sdl2helper.h
@@ -61,6 +61,8 @@ namespace SDL
const int profile);
void makeCurrentContext(void *const context);
+
+ void initLogger();
} // namespace SDL
#endif // USE_SDL2
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp
index dca31ab5e..821eb40a5 100644
--- a/src/utils/sdlhelper.cpp
+++ b/src/utils/sdlhelper.cpp
@@ -182,4 +182,8 @@ void SDL::makeCurrentContext(void *const context A_UNUSED)
}
#endif // defined(USE_X11) && defined(USE_OPENGL)
+void SDL::initLogger()
+{
+}
+
#endif // USE_SDL2
diff --git a/src/utils/sdlhelper.h b/src/utils/sdlhelper.h
index 0ba99df10..5e8c31e15 100644
--- a/src/utils/sdlhelper.h
+++ b/src/utils/sdlhelper.h
@@ -67,6 +67,8 @@ namespace SDL
const int profile);
void makeCurrentContext(void *const context);
+
+ void initLogger();
} // namespace SDL
#endif // USE_SDL2