fix shutdown
This commit is contained in:
+15
-13
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user