mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Log SDL2 version on startup
This commit is contained in:
@@ -113,6 +113,7 @@ public:
|
||||
, _windowManager(CreateWindowManager())
|
||||
, _shortcutManager(env)
|
||||
{
|
||||
LogSDLVersion();
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0)
|
||||
{
|
||||
SDLException::Throw("SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK)");
|
||||
@@ -714,6 +715,13 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
void LogSDLVersion()
|
||||
{
|
||||
SDL_version version{};
|
||||
SDL_GetVersion(&version);
|
||||
log_verbose("SDL2 version: %d.%d.%d", version.major, version.minor, version.patch);
|
||||
}
|
||||
|
||||
void CreateWindow(const ScreenCoordsXY& windowPos)
|
||||
{
|
||||
// Get saved window size
|
||||
|
||||
Reference in New Issue
Block a user