Fixed compiling for html5 targets by excluding the FNFC loading stuff

This commit is contained in:
Karim Akra
2025-10-14 06:54:08 -06:00
committed by Hundrec
parent f1a1db0834
commit 1d18a14356
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -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