From 4c603d90b705e7f8e75b3a2726fa01d0c17b1bc5 Mon Sep 17 00:00:00 2001 From: grbr404 <166065505+grbr404@users.noreply.github.com> Date: Thu, 29 May 2025 21:25:58 +0200 Subject: I moved the logger as it can't return anything if placed before video initialization. --- source/application/StarMainApplication_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/application/StarMainApplication_sdl.cpp') diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 6c7c5af..c43aba7 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -266,13 +266,14 @@ public: SDL_setenv("SDL_VIDEODRIVER", "x11", 1); } } - #endif Logger::info("Application: Initializing SDL Video"); if (SDL_InitSubSystem(SDL_INIT_VIDEO)) throw ApplicationException(strf("Couldn't initialize SDL Video: {}", SDL_GetError())); + Logger::info("Application: using Video Driver '{}'", SDL_GetCurrentVideoDriver()); + Logger::info("Application: Initializing SDL Controller"); if (SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER)) throw ApplicationException(strf("Couldn't initialize SDL Controller: {}", SDL_GetError())); -- cgit v1.2.3