mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-14 03:44:01 +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;
|
int ret;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ret = MessageBoxA(nullptr, box, title, MB_YESNO | MB_ICONQUESTION);
|
ret = MessageBoxA(nullptr, box, title, MB_YESNO | MB_ICONQUESTION);
|
||||||
|
#elif defined(__SWITCH__)
|
||||||
|
SPDLOG_ERROR(box);
|
||||||
|
return IDYES;
|
||||||
#else
|
#else
|
||||||
SDL_MessageBoxData boxData = { 0 };
|
SDL_MessageBoxData boxData = { 0 };
|
||||||
SDL_MessageBoxButtonData buttons[2] = { { 0 } };
|
SDL_MessageBoxButtonData buttons[2] = { { 0 } };
|
||||||
|
@ -446,11 +446,11 @@ void DrawGameMenu() {
|
|||||||
if (UIWidgets::MenuItem("Toggle Fullscreen", "F11")) {
|
if (UIWidgets::MenuItem("Toggle Fullscreen", "F11")) {
|
||||||
Ship::Context::GetInstance()->GetWindow()->ToggleFullscreen();
|
Ship::Context::GetInstance()->GetWindow()->ToggleFullscreen();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (UIWidgets::MenuItem("Quit")) {
|
if (UIWidgets::MenuItem("Quit")) {
|
||||||
Ship::Context::GetInstance()->GetWindow()->Close();
|
Ship::Context::GetInstance()->GetWindow()->Close();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user