Преглед на файлове

[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();
 };