desktop updates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user