Fixed compiling for html5 targets by excluding the FNFC loading stuff
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user