FIx html5 compile.
This commit is contained in:
@@ -387,6 +387,7 @@ class InitState extends FlxState
|
||||
fnfsTargetPath: params.stage.stagePath,
|
||||
}));
|
||||
}
|
||||
#if sys
|
||||
else if (params.song.shouldLoadSong && params.song.songPath != null)
|
||||
{
|
||||
FlxG.switchState(() -> new ChartPlaytestState(
|
||||
@@ -399,6 +400,13 @@ class InitState extends FlxState
|
||||
// FlxG.sound.cache(Paths.music('freakyMenu/freakyMenu'));
|
||||
FlxG.switchState(() -> new TitleState());
|
||||
}
|
||||
#else
|
||||
else
|
||||
{
|
||||
// FlxG.sound.cache(Paths.music('freakyMenu/freakyMenu'));
|
||||
FlxG.switchState(() -> new TitleState());
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.ui.debug;
|
||||
|
||||
#if sys
|
||||
import flixel.FlxSubState;
|
||||
import flixel.text.FlxText;
|
||||
import flixel.tweens.FlxTween;
|
||||
@@ -146,3 +147,4 @@ typedef ChartPlaytestStateParams =
|
||||
{
|
||||
fnfcFilePath:Null<String>
|
||||
};
|
||||
#end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.util.file;
|
||||
|
||||
#if sys
|
||||
import funkin.data.song.SongData.SongChartData;
|
||||
import funkin.ui.transition.LoadingState;
|
||||
import funkin.audio.FunkinSound;
|
||||
@@ -184,3 +185,4 @@ class FNFCUtil
|
||||
return song;
|
||||
}
|
||||
}
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user