From a254b3f410f8ff5161485909b9dfd72347944789 Mon Sep 17 00:00:00 2001 From: Klemen Plestenjak Date: Mon, 12 Feb 2024 15:45:34 +0100 Subject: [PATCH] Remove Exit game button for HTML5 --- game/systems/s_ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/systems/s_ui.c b/game/systems/s_ui.c index 758d02c..75f8d02 100644 --- a/game/systems/s_ui.c +++ b/game/systems/s_ui.c @@ -397,9 +397,11 @@ void drawMainMenuUI(Game *game, f32 dt) { if (uiMainMenuButton("Settings", true)) { setScreen(game, SCREEN_SETTINGS); } +#ifndef EMSCRIPTEN if (uiMainMenuButton("Exit", true)) { bzGameExit(); } +#endif bzUIPopParent(UI); bzUIEnd(UI); }