mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-12 19:07:55 +03:00
Enabled quit again
This commit is contained in:
parent
a8743658e0
commit
21667ef4b3
@ -538,6 +538,9 @@ int GameEngine::ShowYesNoBox(const char* title, const char* box) {
|
||||
int ret;
|
||||
#ifdef _WIN32
|
||||
ret = MessageBoxA(nullptr, box, title, MB_YESNO | MB_ICONQUESTION);
|
||||
#elif defined(__SWITCH__)
|
||||
SPDLOG_ERROR(box);
|
||||
return IDYES;
|
||||
#else
|
||||
SDL_MessageBoxData boxData = { 0 };
|
||||
SDL_MessageBoxButtonData buttons[2] = { { 0 } };
|
||||
|
@ -446,11 +446,11 @@ void DrawGameMenu() {
|
||||
if (UIWidgets::MenuItem("Toggle Fullscreen", "F11")) {
|
||||
Ship::Context::GetInstance()->GetWindow()->ToggleFullscreen();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (UIWidgets::MenuItem("Quit")) {
|
||||
Ship::Context::GetInstance()->GetWindow()->Close();
|
||||
}
|
||||
#endif
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user