Skip to content

Commit

Permalink
Merge pull request #131 from caiiiycuk/html5
Browse files Browse the repository at this point in the history
EMSCRIPTEN: Disable back button only if game started with SINGLE menu
  • Loading branch information
IonAgorria committed Apr 30, 2024
2 parents cb611bb + 1884791 commit 3fc9f53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/UserInterface/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3fc9f53

Please sign in to comment.