瀏覽代碼

added @:keep

Nicolas Cannasse 4 年之前
父節點
當前提交
aae6eaa287
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/System.hl.hx

+ 1 - 1
hxd/System.hl.hx

@@ -426,7 +426,7 @@ class System {
 	}
 	
 	#if (hlsdl || hldx)
-	static var _ = {
+	@:keep static var _ = {
 		haxe.MainLoop.add(timeoutTick, -1) #if (haxe_ver >= 4) .isBlocking = false #end;
 		haxe.MainLoop.add(updateCursor, -1) #if (haxe_ver >= 4) .isBlocking = false #end;
 	}