From 4cd027711a10f74282e40ad75d6f62750632ae51 Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:15:18 +0900 Subject: [PATCH] Log SDL2 version --- src/gui/sdlmain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 77bdfc832ed..f4cb24db9e1 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -8707,6 +8707,13 @@ int main(int argc, char* argv[]) SDL_MAIN_NOEXCEPT { sdl.inited = true; else E_Exit("Can't init SDL %s",SDL_GetError()); +#if defined(C_SDL2) + SDL_version sdl_version; + SDL_GetVersion(&sdl_version); + LOG_MSG("SDL: version %d.%d.%d, Video %s, Audio %s)", + sdl_version.major, sdl_version.minor, sdl_version.patch, + SDL_GetCurrentVideoDriver(), SDL_GetCurrentAudioDriver()); +#endif //defined (C_SDL2) /* -- -- decide whether to show menu in GUI */ if (control->opt_nogui || menu.compatible)