nvidia_kepler.py: Fix build comparison

This commit is contained in:
Mykola Grymalyuk
2024-09-16 13:28:53 -06:00
parent 56c9fd52d5
commit ce08129d4b
3 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
# OpenCore Legacy Patcher changelog
## 2.1.0
- Fix Nvidia Kepler patches not installing on Monterey
## 2.0.1
- Fix MacBookPro13,3 listing 'Available patches' after having installed all applicable patches
- Fix Nvidia Tesla and Kepler patches not installing on Monterey (and older if applicable)

View File

@@ -13,7 +13,7 @@ from .detections import device_probe
class Constants:
def __init__(self) -> None:
# Patcher Versioning
self.patcher_version: str = "2.0.1" # OpenCore-Legacy-Patcher
self.patcher_version: str = "2.1.0" # OpenCore-Legacy-Patcher
self.patcher_support_pkg_version: str = "1.8.0" # PatcherSupportPkg
self.copyright_date: str = "Copyright © 2020-2024 Dortania"
self.patcher_name: str = "OpenCore Legacy Patcher"

View File

@@ -49,10 +49,9 @@ class NvidiaKepler(BaseHardware):
return True
if self._xnu_major == os_data.monterey:
if self._xnu_minor < 0: # 12.0 Beta 8
return True
if self._os_build != "21A5522h": # 12.0 Beta 7
return True
if self._xnu_minor <= 0: # 12.0 Beta 8 increased XNU minor
if self._os_build != "21A5522h": # 12.0 Beta 7
return True
return False