ソースを参照

added exit() for cpp

Nicolas Cannasse 10 年 前
コミット
ff385534f0
1 ファイル変更4 行追加0 行削除
  1. 4 0
      hxd/System.hx

+ 4 - 0
hxd/System.hx

@@ -342,6 +342,10 @@ class System {
 		return sdl.Sdl.getScreenHeight();
 	}
 
+	public static function exit() {
+		Sys.exit(0);
+	}
+
 	static var win : sdl.Window;
 	static var windowWidth = 800;
 	static var windowHeight = 600;