Skip to content

Commit

Permalink
Merge pull request ShadowMario#12032 from EliteMasterEric/patch-2
Browse files Browse the repository at this point in the history
Autosave when pressing BACKSPACE to exit Chart Editor.
  • Loading branch information
ShadowMario authored Mar 6, 2023
2 parents 9c30ee1 + 6500019 commit 6aa05c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/editors/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,9 @@ class ChartingState extends MusicBeatState


if (FlxG.keys.justPressed.BACKSPACE) {
// Protect against lost data when quickly leaving the chart editor.
autosaveSong();

PlayState.chartingMode = false;
MusicBeatState.switchState(new editors.MasterEditorMenu());
FlxG.sound.playMusic(Paths.music('freakyMenu'));
Expand Down

0 comments on commit 6aa05c5

Please sign in to comment.