fix shutdown

This commit is contained in:
2026-06-20 01:20:14 +02:00
parent 1479ad468d
commit b1dad89214
8 changed files with 209 additions and 158 deletions
+15 -13
View File
@@ -9,22 +9,24 @@ int main(int argc, char* argv[]) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", SDL_GetError(), nullptr);
return 1;
}
{
std::filesystem::path exeDir = SDL_GetBasePath();
std::filesystem::path exeDir = SDL_GetBasePath();
spdlog::set_level(spdlog::level::debug);
spdlog::set_level(spdlog::level::debug);
LightKeeper app;
app.init({
.windowSize = {800, 600},
.renderSize = {800, 600},
.appName = "Astro Engine",
.windowTitle = "Lightkeeper",
.exeDir = exeDir,
});
app.run();
app.cleanup();
LightKeeper app;
app.init({
.windowSize = {800, 600},
.renderSize = {800, 600},
.appName = "Astro Engine",
.windowTitle = "Lightkeeper",
.exeDir = exeDir,
});
app.run();
app.cleanup();
}
SDL_Quit();
return 0;
}