From: Holger Schemel Date: Sat, 25 Sep 2021 00:31:58 +0000 (+0200) Subject: added message when attempting to quit game on Emscripten platform X-Git-Tag: 4.3.0.0~32 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f4784d1444f57635f6d0ef02d72b2baf4844a2dc;p=rocksndiamonds.git added message when attempting to quit game on Emscripten platform --- diff --git a/src/screens.c b/src/screens.c index a1470f20..d648b00e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -2232,9 +2232,13 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button) SaveLevelSetup_LastSeries(); SaveLevelSetup_SeriesInfo(); +#if defined(PLATFORM_EMSCRIPTEN) + Request("Close the browser window to quit!", REQ_CONFIRM); +#else if (!setup.ask_on_quit_program || Request("Do you really want to quit?", REQ_ASK | REQ_STAY_CLOSED)) SetGameStatus(GAME_MODE_QUIT); +#endif } } }