mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
Fix USB mapping witout CPUFriend
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
- Fix iMac9,1 audio support
|
- Fix iMac9,1 audio support
|
||||||
- Heavily expand Graphics ID list
|
- Heavily expand Graphics ID list
|
||||||
- Fix iMac7,1 audio support
|
- Fix iMac7,1 audio support
|
||||||
- Add partial TeraScale 2 support
|
|
||||||
|
|
||||||
## 0.1.2
|
## 0.1.2
|
||||||
- Fix IDE support on 2008 era MacBooks, iMacs and Xserves
|
- Fix IDE support on 2008 era MacBooks, iMacs and Xserves
|
||||||
|
|||||||
+2
-3
@@ -641,7 +641,7 @@ class BuildOpenCore:
|
|||||||
self.config["PlatformInfo"]["CustomMemory"] = True
|
self.config["PlatformInfo"]["CustomMemory"] = True
|
||||||
|
|
||||||
# USB Map and CPUFriend Patching
|
# USB Map and CPUFriend Patching
|
||||||
if self.constants.allow_oc_everywhere is False and self.model != "iMac7,1" and self.constants.disallow_cpufriend is False:
|
if self.constants.allow_oc_everywhere is False and self.model != "iMac7,1":
|
||||||
new_map_ls = Path(self.constants.map_contents_folder) / Path("Info.plist")
|
new_map_ls = Path(self.constants.map_contents_folder) / Path("Info.plist")
|
||||||
map_config = plistlib.load(Path(new_map_ls).open("rb"))
|
map_config = plistlib.load(Path(new_map_ls).open("rb"))
|
||||||
|
|
||||||
@@ -662,9 +662,8 @@ class BuildOpenCore:
|
|||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
plistlib.dump(map_config, Path(new_map_ls).open("wb"), sort_keys=True)
|
plistlib.dump(map_config, Path(new_map_ls).open("wb"), sort_keys=True)
|
||||||
|
if self.constants.allow_oc_everywhere is False and self.model != "iMac7,1" and self.constants.disallow_cpufriend is False:
|
||||||
# Adjust CPU Friend Data to correct SMBIOS
|
# Adjust CPU Friend Data to correct SMBIOS
|
||||||
new_cpu_ls = Path(self.constants.pp_contents_folder) / Path("Info.plist")
|
new_cpu_ls = Path(self.constants.pp_contents_folder) / Path("Info.plist")
|
||||||
cpu_config = plistlib.load(Path(new_cpu_ls).open("rb"))
|
cpu_config = plistlib.load(Path(new_cpu_ls).open("rb"))
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class PatchSysVolume:
|
|||||||
# print("- Merging legacy Nvidia Kepler Kexts and Bundles")
|
# print("- Merging legacy Nvidia Kepler Kexts and Bundles")
|
||||||
# self.add_new_binaries(ModelArray.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path)
|
# self.add_new_binaries(ModelArray.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path)
|
||||||
elif dgpu_vendor == self.constants.pci_amd_ati:
|
elif dgpu_vendor == self.constants.pci_amd_ati:
|
||||||
if dgpu_device in PCIIDArray.amd_ids().terascale_1_ids or dgpu_device in PCIIDArray.amd_ids().terascale_2_ids:
|
if dgpu_device in PCIIDArray.amd_ids().terascale_1_ids:
|
||||||
print("- Merging legacy AMD Kexts and Bundles")
|
print("- Merging legacy AMD Kexts and Bundles")
|
||||||
self.delete_old_binaries(ModelArray.DeleteAMDAccel11)
|
self.delete_old_binaries(ModelArray.DeleteAMDAccel11)
|
||||||
self.add_new_binaries(ModelArray.AddGeneralAccel, self.constants.legacy_general_path)
|
self.add_new_binaries(ModelArray.AddGeneralAccel, self.constants.legacy_general_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user