浏览代码

Merge pull request #89855 from Alex2782/fix_exit_code_macos

Fix `EXIT_SUCCESS` on MacOS
Rémi Verschelde 1 年之前
父节点
当前提交
5d08c2631c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/macos/godot_main_macos.mm

+ 1 - 1
platform/macos/godot_main_macos.mm

@@ -80,7 +80,7 @@ int main(int argc, char **argv) {
 	@autoreleasepool {
 		ret = Main::start();
 	}
-	if (ret) {
+	if (ret == EXIT_SUCCESS) {
 		os.run();
 	} else {
 		os.set_exit_code(EXIT_FAILURE);