ncannasse 8 anni fa
parent
commit
e654c39861
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      hxd/System.hx

+ 6 - 1
hxd/System.hx

@@ -553,7 +553,12 @@ class System {
 	}
 
 	public static function exit() {
-		Sys.exit(0);
+		try {
+			Sys.exit(0);
+		} catch( e : Dynamic ) {
+			// access violation sometimes ?
+			exit();
+		}
 	}
 
 	public static function getClipboard() : String {