desktop updates

This commit is contained in:
Yoshman29
2022-12-21 17:24:18 +01:00
parent 2d1980ac84
commit 0c538e3367
16 changed files with 70 additions and 51 deletions
+2
View File
@@ -1,5 +1,6 @@
package funkin.system;
import funkin.desktop.DesktopMain;
import openfl.utils.AssetLibrary;
import openfl.utils.AssetCache;
import openfl.text.TextFormat;
@@ -139,6 +140,7 @@ class Main extends Sprite
Logs.init();
Paths.init();
ModsFolder.init();
DesktopMain.init();
#if MOD_SUPPORT
ModsFolder.switchMod("introMod");
#end
+3 -5
View File
@@ -189,7 +189,9 @@ class MusicBeatState extends FlxUIState implements IBeatReceiver
}
public override function destroy() {
super.destroy();
if (parentWindow == null)
super.destroy();
call("onDestroy");
if (stateScript != null)
stateScript.destroy();
@@ -197,10 +199,6 @@ class MusicBeatState extends FlxUIState implements IBeatReceiver
public override function draw() {
super.draw();
#if ALLOW_MULTITASKING
if (parentWindow == null)
funkin.multitasking.MultiTaskingHandler.draw();
#end
}
public override function switchTo(nextState:FlxState) {