Skip to content

Commit

Permalink
Log SDL2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Jul 20, 2023
1 parent d8c1d83 commit 4cd0277
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cd0277

Please sign in to comment.