This commit is contained in:
Yoshman29
2022-12-08 16:42:56 +01:00
parent 65dc05d3c3
commit a4d07ae8ab
3 changed files with 22 additions and 10 deletions
+10
View File
@@ -113,7 +113,17 @@ class Main extends Sprite
public static var audioDisconnected:Bool = false;
public static var changeID:Int = 0;
private static var __threadCycle:Int = 0;
public static function execAsync(func:Void->Void) {
#if sys
var thread = gameThreads[(__threadCycle++) % gameThreads.length];
thread.events.run(func);
#else
func();
#end
}
public function loadGameSettings() {
#if sys