diff options
author | grbr404 <166065505+grbr404@users.noreply.github.com> | 2025-05-29 21:25:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-29 21:25:58 +0200 |
commit | 4c603d90b705e7f8e75b3a2726fa01d0c17b1bc5 (patch) | |
tree | 467837cfd2523cb0e3ac6850527d88f1f7be31d9 /source/application/StarMainApplication_sdl.cpp | |
parent | f0b6d6482cd3229b00da629b87f28e977e564910 (diff) |
I moved the logger as it can't return anything if placed before video initialization.
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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())); |