소스 검색

Fix unused exitcode in macos export plugin

Fix that the exitcode is never set.

(cherry picked from commit 567a591f87749389e917b7713e8ab881859207e8)
Markus Sauermann 2 년 전
부모
커밋
ccb9ffb6a3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/osx/export/export.cpp

+ 1 - 1
platform/osx/export/export.cpp

@@ -814,7 +814,7 @@ Error EditorExportPlatformOSX::_code_sign(const Ref<EditorExportPreset> &p_prese
 			String str;
 			int exitcode = 0;
 
-			Error err = OS::get_singleton()->execute("codesign", args, true, NULL, &str, NULL, true);
+			Error err = OS::get_singleton()->execute("codesign", args, true, NULL, &str, &exitcode, true);
 			if (err != OK) {
 				add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not start codesign executable, make sure Xcode command line tools are installed."));
 				return err;