Final bugfix before testflight
This commit is contained in:
@@ -400,8 +400,17 @@ class InitState extends FlxState
|
||||
{
|
||||
// FlxG.sound.cache(Paths.music('freakyMenu/freakyMenu'));
|
||||
#if mobile
|
||||
funkin.mobile.util.FNFCUtil.onFNFCOpen.add(function(filePath:String) {
|
||||
openSubState(new ChartPlaytestMenu(filePath));
|
||||
funkin.mobile.util.FNFCUtil.onFNFCOpen.add(function(fnfcFile:String) {
|
||||
flixel.tweens.FlxTween.globalManager.clear();
|
||||
flixel.util.FlxTimer.globalManager.clear();
|
||||
@:nullSafety(Off)
|
||||
if (FlxG.sound.music != null)
|
||||
{
|
||||
FlxG.sound.music.destroy();
|
||||
FlxG.sound.music = null;
|
||||
}
|
||||
|
||||
FlxG.switchState(() -> new ChartPlaytestMenu(fnfcFile));
|
||||
});
|
||||
|
||||
final fnfcFile = funkin.mobile.util.FNFCUtil.queryFNFC();
|
||||
|
||||
@@ -40,7 +40,7 @@ public class FNFCExtension extends Extension
|
||||
super.onNewIntent(intent);
|
||||
|
||||
if (intent != null && intent.getData() != null) {
|
||||
handleIntent(mainActivity.getIntent(), true);
|
||||
handleIntent(intent, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import funkin.input.Cursor;
|
||||
/**
|
||||
* When playtesting from an FNFC file, we display a debug UI to choose a difficulty first.
|
||||
*/
|
||||
class ChartPlaytestMenu extends MusicBeatSubState
|
||||
class ChartPlaytestMenu extends MusicBeatState
|
||||
{
|
||||
var filePath:String;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user