Skip to content

Commit 1d18a14

Browse files
KarimAkraHundrec
authored andcommitted
Fixed compiling for html5 targets by excluding the FNFC loading stuff
1 parent f1a1db0 commit 1d18a14

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

source/funkin/InitState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,11 @@ class InitState extends FlxState
402402
}
403403
else if (params.song.shouldLoadSong && params.song.songPath != null)
404404
{
405+
#if sys
405406
FlxG.switchState(() -> new ChartPlaytestMenu(params.song.songPath));
407+
#else
408+
FlxG.switchState(() -> new TitleState());
409+
#end
406410
}
407411
else
408412
{

source/funkin/ui/debug/playtest/ChartPlaytestMenu.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package funkin.ui.debug.playtest;
22

3+
#if sys
34
import flixel.text.FlxText;
45
import flixel.util.FlxColor;
56
import flixel.tweens.FlxTween;
@@ -97,3 +98,4 @@ class ChartPlaytestMenu extends MusicBeatState
9798
#end
9899
}
99100
}
101+
#end

source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package funkin.ui.debug.playtest;
22

3+
#if sys
34
import flixel.group.FlxSpriteGroup;
45
import flixel.text.FlxText;
56
import flixel.util.FlxColor;
@@ -104,3 +105,4 @@ class ChartPlaytestMenuButtonListToggle extends ChartPlaytestMenuButtonBase
104105
return '$title: $selectedItem';
105106
}
106107
}
108+
#end

0 commit comments

Comments
 (0)