diff --git a/tools/build_patch.gd b/tools/build_patch.gd index 8d5de6a..207a04e 100644 --- a/tools/build_patch.gd +++ b/tools/build_patch.gd @@ -9,14 +9,14 @@ func _initialize(): if not FileAccess.file_exists(changed_files_txt): print("ERROR: missing changed_files.txt. Cannot build patch.") - quit(1) + OS.set_exit_code(1) return var pck_packer = PCKPacker.new() var err = pck_packer.pck_start(output_file) if err != OK: print("ERROR: Could not start PCK file: ", output_file) - quit(1) + OS.set_exit_code(1) return var file = FileAccess.open(changed_files_txt, FileAccess.READ)