Skip to content

Commit 45ae593

Browse files
committed
Ctrl+Shift+F1 to force main menu state switch
1 parent 68a5dd2 commit 45ae593

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/funkin/backend/MusicBeatState.hx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import funkin.backend.system.GraphicCacheSprite;
1212
import funkin.backend.system.framerate.Framerate;
1313
import funkin.backend.system.interfaces.IBeatReceiver;
1414
import funkin.backend.system.interfaces.IBeatCancellableReceiver;
15+
import funkin.menus.MainMenuState;
1516
import funkin.options.PlayerSettings;
1617

1718
/**
@@ -166,6 +167,11 @@ class MusicBeatState extends FlxState implements IBeatCancellableReceiver
166167
FlxG.resetState();
167168
}
168169

170+
if (FlxG.keys.justPressed.F1 && FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.SHIFT) {
171+
Logs.trace("Returning to Main Menu...", INFO, YELLOW);
172+
FlxG.switchState(new MainMenuState());
173+
}
174+
169175
if (subState != null)
170176
subState.tryUpdate(elapsed);
171177
}

0 commit comments

Comments
 (0)