diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e5d69870..7ff4f2d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # OpenCore Legacy Patcher changelog -## 0.5.0 +## 0.4.7 +- Fix crashing on defaults parsing ## 0.4.6 - Fix Bluetooth support in 12.4 Release diff --git a/resources/constants.py b/resources/constants.py index bf2d7f136..69c9d64b5 100644 --- a/resources/constants.py +++ b/resources/constants.py @@ -12,7 +12,7 @@ from data import os_data class Constants: def __init__(self): # Patcher Versioning - self.patcher_version = "0.5.0" # OpenCore-Legacy-Patcher + self.patcher_version = "0.4.7" # OpenCore-Legacy-Patcher self.patcher_support_pkg_version = "0.5.1" # PatcherSupportPkg self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/" self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/" diff --git a/resources/global_settings.py b/resources/global_settings.py index 4679293b8..aca867eb4 100644 --- a/resources/global_settings.py +++ b/resources/global_settings.py @@ -18,7 +18,10 @@ class global_settings: def generate_settings_file(self): if Path(self.global_settings_plist).exists(): return - plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb")) + try: + plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb")) + except PermissionError: + print("- Permission error: Unable to write to global settings file") def read_property(self, property_name): if Path(self.global_settings_plist).exists(): @@ -31,7 +34,10 @@ class global_settings: if Path(self.global_settings_plist).exists(): plist = plistlib.load(Path(self.global_settings_plist).open("rb")) plist[property_name] = property_value - plistlib.dump(plist, Path(self.global_settings_plist).open("wb")) + try: + plistlib.dump(plist, Path(self.global_settings_plist).open("wb")) + except PermissionError: + print("- Failed to write to global settings file") def convert_defaults_to_global_settings(self):