Browse Source

added @:keep

Nicolas Cannasse 4 years ago
parent
commit
aae6eaa287
1 changed files with 1 additions and 1 deletions
  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;
 	}