From 1884791417c49b651a3bd13fe58579559274832d Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Tue, 30 Apr 2024 12:27:03 +0300 Subject: [PATCH] Disable back button only if game started with SINGLE menu --- Source/UserInterface/MainMenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/UserInterface/MainMenu.cpp b/Source/UserInterface/MainMenu.cpp index 704b3952..50b07c05 100644 --- a/Source/UserInterface/MainMenu.cpp +++ b/Source/UserInterface/MainMenu.cpp @@ -760,7 +760,9 @@ int SwitchMenuBGQuant2( float, float ) { //Only enable if user didn't choose a specific content _shellIconManager.GetWnd(SQSH_MM_BATTLE_BTN)->Enable(terGameContentAvailable == terGameContentSelect); #ifdef EMSCRIPTEN - _shellIconManager.GetWnd(SQSH_MM_BACK_FROM_SINGLE_BTN)->Enable(false); + if (_shellIconManager.initialMenu == SQSH_MM_SINGLE_SCR) { + _shellIconManager.GetWnd(SQSH_MM_BACK_FROM_SINGLE_BTN)->Enable(false); + } #endif #ifdef GPX _shellIconManager.GetWnd(SQSH_MM_CONTENT_CHOOSER_BTN)->Enable(false);