mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-13 22:32:32 +00:00
Log the SDL version
This commit is contained in:
parent
264fdfa10e
commit
368bf2819c
1 changed files with 8 additions and 1 deletions
|
@ -2765,7 +2765,14 @@ void idCommonLocal::Init( int argc, char **argv ) {
|
|||
idCVar::RegisterStaticVars();
|
||||
|
||||
// print engine version
|
||||
Printf( "%s\n", version.string );
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
SDL_version sdlv;
|
||||
SDL_GetVersion(&sdlv);
|
||||
#else
|
||||
SDL_version sdlv = *SDL_Linked_Version();
|
||||
#endif
|
||||
Printf( "%s using SDL v%u.%u.%u\n",
|
||||
version.string, sdlv.major, sdlv.minor, sdlv.patch );
|
||||
|
||||
// initialize key input/binding, done early so bind command exists
|
||||
idKeyInput::Init();
|
||||
|
|
Loading…
Reference in a new issue