mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
Fix MacBookPro9,1 patches
This commit is contained in:
+3
-3
@@ -447,7 +447,7 @@ class BuildOpenCore:
|
|||||||
|
|
||||||
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.model == "MacBookPro8,1":
|
if self.model == "MacBookPro9,1":
|
||||||
new_agdp_ls = Path(self.constants.agdp_contents_folder) / Path("Info.plist")
|
new_agdp_ls = Path(self.constants.agdp_contents_folder) / Path("Info.plist")
|
||||||
new_agpm_ls = Path(self.constants.agpm_contents_folder) / Path("Info.plist")
|
new_agpm_ls = Path(self.constants.agpm_contents_folder) / Path("Info.plist")
|
||||||
new_amc_ls = Path(self.constants.amc_contents_folder) / Path("Info.plist")
|
new_amc_ls = Path(self.constants.amc_contents_folder) / Path("Info.plist")
|
||||||
@@ -456,9 +456,9 @@ class BuildOpenCore:
|
|||||||
agpm_config = plistlib.load(Path(new_agpm_ls).open("rb"))
|
agpm_config = plistlib.load(Path(new_agpm_ls).open("rb"))
|
||||||
amc_config = plistlib.load(Path(new_amc_ls).open("rb"))
|
amc_config = plistlib.load(Path(new_amc_ls).open("rb"))
|
||||||
|
|
||||||
#agdp_config["IOKitPersonalities"]["AppleGraphicsDevicePolicy"]["ConfigMap"][self.spoofed_board] = agdp_config["IOKitPersonalities"]["AppleGraphicsDevicePolicy"]["ConfigMap"].pop(self.model)
|
agdp_config["IOKitPersonalities"]["AppleGraphicsDevicePolicy"]["ConfigMap"][self.spoofed_board] = agdp_config["IOKitPersonalities"]["AppleGraphicsDevicePolicy"]["ConfigMap"].pop(self.model)
|
||||||
agpm_config["IOKitPersonalities"]["AGPM"]["Machines"][self.spoofed_board] = agpm_config["IOKitPersonalities"]["AGPM"]["Machines"].pop(self.model)
|
agpm_config["IOKitPersonalities"]["AGPM"]["Machines"][self.spoofed_board] = agpm_config["IOKitPersonalities"]["AGPM"]["Machines"].pop(self.model)
|
||||||
#amc_config["IOKitPersonalities"]["AppleMuxControl"]["ConfigMap"][self.spoofed_board] = amc_config["IOKitPersonalities"]["AppleMuxControl"]["ConfigMap"].pop(self.model)
|
amc_config["IOKitPersonalities"]["AppleMuxControl"]["ConfigMap"][self.spoofed_board] = amc_config["IOKitPersonalities"]["AppleMuxControl"]["ConfigMap"].pop(self.model)
|
||||||
|
|
||||||
plistlib.dump(agdp_config, Path(new_agdp_ls).open("wb"), sort_keys=True)
|
plistlib.dump(agdp_config, Path(new_agdp_ls).open("wb"), sort_keys=True)
|
||||||
plistlib.dump(agpm_config, Path(new_agpm_ls).open("wb"), sort_keys=True)
|
plistlib.dump(agpm_config, Path(new_agpm_ls).open("wb"), sort_keys=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user