Load config using JSON

This commit is contained in:
2025-12-24 22:12:25 +08:00
parent 19be826869
commit 03cd5d83d1
9 changed files with 121 additions and 16 deletions

View File

@@ -18,6 +18,9 @@ bool GameApplication::initialize() {
SDL_Log("无法初始化 SDL_ttf: %s", SDL_GetError());
return false;
}
if (!ConfigLoader::load("assets/config.json", m_config)) {
SDL_Log("无法加载json");
}
// 输入管理
m_inputManager = std::make_unique<InputManager>();
// 窗口管理