Fix ThirdPartyDrives model detection

Reference: https://github.com/dortania/Opencore-Legacy-Patcher/issues/83
This commit is contained in:
Mykola Grymalyuk
2021-03-07 12:43:12 -07:00
parent 65cb3cf7f0
commit 90274eef33
4 changed files with 19 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
## 0.0.15
- Add user-configurable OpenCore DEBUG builds
- Add user-configurable Wifi and GPU patches
- Fix ThirdPartyDrives model detection
## 0.0.14
- Enable ThirdPartyDrives to aid with hibernation on 3rd party SATA drives

View File

@@ -801,4 +801,16 @@ NightShiftExclude = [
UGAtoGOP = [
"MacPro3,1"
]
NoSATAPatch = [
"MacBookAir5,1",
"MacBookAir5,2",
"MacBookPro10,1",
"MacBookPro10,2",
"iMac13,1",
"iMac13,2",
"iMac14,1",
"iMac14,2",
"iMac14,3",
]

View File

@@ -202,6 +202,11 @@ class BuildOpenCore:
print("- Adding UGA to GOP Patch")
self.config["UEFI"]["ProtocolOverrides"]["GopPassThrough"] = True
# ThridPartDrives Check
if self.model not in ModelArray.NoSATAPatch:
print("- Adding SATA Hibernation Patch")
self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True
#DEBUG Settings
if self.constants.verbose_debug == True:
print("- Enabling Verbose boot")

View File

@@ -664,7 +664,7 @@
<key>SetApfsTrimTimeout</key>
<integer>-1</integer>
<key>ThirdPartyDrives</key>
<true/>
<false/>
<key>XhciPortLimit</key>
<false/>
</dict>