change the location of initSDL

This commit is contained in:
2025-12-07 15:53:05 +08:00
parent 55dc845613
commit 864048a733
2 changed files with 7 additions and 5 deletions

View File

@@ -9,6 +9,12 @@ GameApplication::~GameApplication() {
}
bool GameApplication::initialize() {
// 初始化SDL视频子系统[6,7](@ref)
if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("SDL初始化失败: %s", SDL_GetError());
return false;
}
m_inputManager = std::make_unique<InputManager>();
m_windowManager = std::make_unique<WindowManager>();