mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
Add legacy iSight patch
Thanks Jazzny for notifying!
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
- Fix Content Caching with spoofless usage
|
||||
- Allow disabling of ConnectDrivers
|
||||
- Aid with Hibernation on MacBookPro9,1/MacBookPro10,1
|
||||
- Add legacy iSight patch
|
||||
- Applicable for MacBook4,1/5,2
|
||||
- Affected Device IDs: 0x8300, 0x8501, 0x8503
|
||||
- Credit to parrotgeek1 for LegacyUSBVideoSupport
|
||||
|
||||
## 0.3.1
|
||||
- Increment Binaries:
|
||||
|
||||
@@ -29,6 +29,7 @@ smbios_dictionary = {
|
||||
"Screen Size": 13,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_950
|
||||
],
|
||||
@@ -48,6 +49,7 @@ smbios_dictionary = {
|
||||
"Screen Size": 13,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_950
|
||||
],
|
||||
@@ -67,6 +69,7 @@ smbios_dictionary = {
|
||||
"Screen Size": 13,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_X3100
|
||||
],
|
||||
@@ -86,6 +89,7 @@ smbios_dictionary = {
|
||||
"Screen Size": 13,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_X3100
|
||||
],
|
||||
@@ -140,6 +144,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
|
||||
"Screen Size": 13,
|
||||
"Ethernet Chipset": "Nvidia",
|
||||
"Legacy iSight": True,
|
||||
"nForce Chipset": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.NVIDIA.Archs.Tesla
|
||||
@@ -1686,6 +1691,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.AMD.Archs.R500,
|
||||
],
|
||||
@@ -1704,6 +1710,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_950,
|
||||
],
|
||||
@@ -1722,6 +1729,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.AMD.Archs.R500,
|
||||
],
|
||||
@@ -1740,6 +1748,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.Intel.Archs.GMA_950,
|
||||
],
|
||||
@@ -1758,6 +1767,7 @@ smbios_dictionary = {
|
||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
|
||||
"UGA Graphics": True,
|
||||
"Ethernet Chipset": "Marvell",
|
||||
"Legacy iSight": True,
|
||||
"Stock GPUs": [
|
||||
device_probe.AMD.Archs.R500,
|
||||
device_probe.NVIDIA.Archs.Curie
|
||||
|
||||
@@ -1113,6 +1113,24 @@
|
||||
<key>PlistPath</key>
|
||||
<string>Contents/Info.plist</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>x86_64</string>
|
||||
<key>BundlePath</key>
|
||||
<string>LegacyUSBVideoSupport.kext</string>
|
||||
<key>Comment</key>
|
||||
<string>Legayc iSight support</string>
|
||||
<key>Enabled</key>
|
||||
<false/>
|
||||
<key>ExecutablePath</key>
|
||||
<string>Contents/MacOS/LegacyUSBVideoSupport</string>
|
||||
<key>MaxKernel</key>
|
||||
<string></string>
|
||||
<key>MinKernel</key>
|
||||
<string>18.0.0</string>
|
||||
<key>PlistPath</key>
|
||||
<string>Contents/Info.plist</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>Block</key>
|
||||
<array/>
|
||||
|
||||
BIN
payloads/Kexts/Misc/LegacyUSBVideoSupport-v1.0.0.zip
Normal file
BIN
payloads/Kexts/Misc/LegacyUSBVideoSupport-v1.0.0.zip
Normal file
Binary file not shown.
@@ -343,6 +343,13 @@ class BuildOpenCore:
|
||||
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.penryn.value:
|
||||
print("- Adding IOHIDFamily patch")
|
||||
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.iokit.IOHIDFamily")["Enabled"] = True
|
||||
|
||||
# Legacy iSight patches
|
||||
try:
|
||||
if smbios_data.smbios_dictionary[self.model]["Legacy iSight"] is True:
|
||||
self.enable_kext("LegacyUSBVideoSupport.kext", self.constants.apple_isight_version, self.constants.apple_isight_path)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
# SSDT patches
|
||||
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] == cpu_data.cpu_data.nehalem.value and not (self.model.startswith("MacPro") or self.model.startswith("Xserve")):
|
||||
|
||||
@@ -42,11 +42,12 @@ class Constants:
|
||||
|
||||
## Apple
|
||||
## https://www.apple.com
|
||||
self.marvel_version = "1.0.1" # MarvelYukonEthernet
|
||||
self.nforce_version = "1.0.1" # nForceEthernet
|
||||
self.piixata_version = "1.0.1" # AppleIntelPIIXATA
|
||||
self.fw_kext = "1.0.1" # IOFireWireFamily
|
||||
self.apple_trackpad = "1.0.1" # AppleUSBTrackpad
|
||||
self.marvel_version = "1.0.1" # MarvelYukonEthernet
|
||||
self.nforce_version = "1.0.1" # nForceEthernet
|
||||
self.piixata_version = "1.0.1" # AppleIntelPIIXATA
|
||||
self.fw_kext = "1.0.1" # IOFireWireFamily
|
||||
self.apple_trackpad = "1.0.1" # AppleUSBTrackpad
|
||||
self.apple_isight_version = "1.0.0" # AppleISight
|
||||
|
||||
## Apple - Dortania Modified
|
||||
self.bcm570_version = "1.0.2" # CatalinaBCM5701Ethernet
|
||||
@@ -344,6 +345,10 @@ class Constants:
|
||||
@property
|
||||
def apple_trackpad_path(self):
|
||||
return self.payload_kexts_path / Path(f"Misc/AppleUSBTrackpad-v{self.apple_trackpad}.zip")
|
||||
|
||||
@property
|
||||
def apple_isight_path(self):
|
||||
return self.payload_kexts_path / Path(f"Misc/LegacyUSBVideoSupport-v{self.apple_isight_version}.zip")
|
||||
|
||||
@property
|
||||
def plist_folder_path(self):
|
||||
|
||||
Reference in New Issue
Block a user