瀏覽代碼

[macOS] Return exit code specified by `OS.exit_code` parameter.

bruvzg 7 年之前
父節點
當前提交
834f427cf5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/osx/godot_main_osx.mm

+ 1 - 1
platform/osx/godot_main_osx.mm

@@ -84,5 +84,5 @@ int main(int argc, char **argv) {
 		os.run(); // it is actually the OS that decides how to run
 	Main::cleanup();
 
-	return 0;
+	return os.get_exit_code();
 };