Skip to content

Commit

Permalink
Autosave when pressing BACKSPACE to exit Chart Editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric authored Mar 6, 2023
1 parent 9c30ee1 commit 6500019
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 6500019

Please sign in to comment.