diff --git a/source/funkin/InitState.hx b/source/funkin/InitState.hx index b74316753..17f07cd72 100644 --- a/source/funkin/InitState.hx +++ b/source/funkin/InitState.hx @@ -402,7 +402,11 @@ class InitState extends FlxState } else if (params.song.shouldLoadSong && params.song.songPath != null) { + #if sys FlxG.switchState(() -> new ChartPlaytestMenu(params.song.songPath)); + #else + FlxG.switchState(() -> new TitleState()); + #end } else { diff --git a/source/funkin/ui/debug/playtest/ChartPlaytestMenu.hx b/source/funkin/ui/debug/playtest/ChartPlaytestMenu.hx index 02293cee7..612415373 100644 --- a/source/funkin/ui/debug/playtest/ChartPlaytestMenu.hx +++ b/source/funkin/ui/debug/playtest/ChartPlaytestMenu.hx @@ -1,5 +1,6 @@ package funkin.ui.debug.playtest; +#if sys import flixel.text.FlxText; import flixel.util.FlxColor; import flixel.tweens.FlxTween; @@ -97,3 +98,4 @@ class ChartPlaytestMenu extends MusicBeatState #end } } +#end diff --git a/source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx b/source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx index e75e3b7e3..cce1d1160 100644 --- a/source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx +++ b/source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx @@ -1,5 +1,6 @@ package funkin.ui.debug.playtest; +#if sys import flixel.group.FlxSpriteGroup; import flixel.text.FlxText; import flixel.util.FlxColor; @@ -104,3 +105,4 @@ class ChartPlaytestMenuButtonListToggle extends ChartPlaytestMenuButtonBase return '$title: $selectedItem'; } } +#end