Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-05-29 21:25:58 +0200
committerGitHub <noreply@github.com>2025-05-29 21:25:58 +0200
commit4c603d90b705e7f8e75b3a2726fa01d0c17b1bc5 (patch)
tree467837cfd2523cb0e3ac6850527d88f1f7be31d9 /source/application
parentf0b6d6482cd3229b00da629b87f28e977e564910 (diff)
I moved the logger as it can't return anything if placed before video initialization.
Diffstat (limited to 'source/application')
-rw-r--r--source/application/StarMainApplication_sdl.cpp3
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()));