amd_polaris.py: Fix MacBookPro13,3 patch detection logic

This commit is contained in:
Mykola Grymalyuk
2024-09-15 10:08:40 -06:00
parent f6408a1054
commit 38657fb1c6
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
# OpenCore Legacy Patcher changelog
## 2.1.0
- Fix MacBookPro13,3 listing 'Available patches' after having installed all applicable patches
## 2.0.0
- Set `AssociatedBundleIdentifiers` property in launch services as an array

View File

@@ -78,7 +78,9 @@ class AMDPolaris(BaseHardware):
# For MacBookPro13,3 missing framebuffers (ex. 'ATY,Berbice')
if self._computer.real_model in ["MacBookPro13,3"]:
# Since dropped at the same time, we can use the same patches
return AMDLegacyGCN(self._xnu_major, self._xnu_minor, self._os_build, self._constants)._model_specific_patches()
result = AMDLegacyGCN(self._xnu_major, self._xnu_minor, self._os_build, self._constants)._model_specific_patches()
# Have to rename 'AMD Legacy GCN' to 'AMD Polaris' for model detection
return {"AMD Polaris": result["AMD Legacy GCN"]}
# For MacBookPro14,3 (and other AMD dGPUs that no longer function in Sonoma)
# iMac18,2/3 still function with the generic framebuffer, however if issues arise