Skip to content

Commit

Permalink
Update BaseOptionsMenu.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Nov 27, 2024
1 parent 494374e commit fa5cadc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions source/options/BaseOptionsMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,6 @@ class BaseOptionsMenu extends MusicBeatSubstate
}

if (controls.BACK) {
#if android
// P-Slice moment
if (ClientPrefs.data.storageType != MobileOptionsSubState.lastStorageType)
{
FlxG.sound.play(Paths.sound('cancelMenu'));
MobileOptionsSubState.onStorageChange();
CoolUtil.showPopUp('Storage Type has been changed and you needed restart the game!!\nPress OK to close the game.', 'Notice!');
ClientPrefs.saveSettings();
lime.system.System.exit(0);
}
#end
close();
FlxG.sound.play(Paths.sound('cancelMenu'));
}
Expand Down Expand Up @@ -521,4 +510,4 @@ class BaseOptionsMenu extends MusicBeatSubstate
function reloadCheckboxes()
for (checkbox in checkboxGroup)
checkbox.daValue = Std.string(optionsArray[checkbox.ID].getValue()) == 'true'; //Do not take off the Std.string() from this, it will break a thing in Mod Settings Menu
}
}

0 comments on commit fa5cadc

Please sign in to comment.