mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 14:40:52 +10:00
Re-add Content Caching for VMM
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
- WhateverGreen 1.5.6 - release
|
- WhateverGreen 1.5.6 - release
|
||||||
- Lilu 1.5.9 - release
|
- Lilu 1.5.9 - release
|
||||||
- gfxutil 1.8.2b - release
|
- gfxutil 1.8.2b - release
|
||||||
|
- Re-add Content Caching support for VMM-spoofed systems
|
||||||
|
|
||||||
## 0.3.3
|
## 0.3.3
|
||||||
- Disable Asset Caching support with spoofless approach
|
- Disable Asset Caching support with spoofless approach
|
||||||
|
|||||||
+6
-4
@@ -903,10 +903,12 @@ class BuildOpenCore:
|
|||||||
if self.constants.nvram_write is False:
|
if self.constants.nvram_write is False:
|
||||||
print("- Disabling Hardware NVRAM Write")
|
print("- Disabling Hardware NVRAM Write")
|
||||||
self.config["NVRAM"]["WriteFlash"] = False
|
self.config["NVRAM"]["WriteFlash"] = False
|
||||||
# if self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] is True:
|
if self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] is True:
|
||||||
# # Add Content Caching patch
|
# Add Content Caching patch
|
||||||
# print("- Fixing Content Caching support")
|
print("- Fixing Content Caching support")
|
||||||
# self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -allow_assetcache"
|
if self.get_kext_by_bundle_path("RestrictEvents.kext")["Enabled"] is False:
|
||||||
|
self.enable_kext("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path)
|
||||||
|
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -revasset"
|
||||||
if self.get_kext_by_bundle_path("RestrictEvents.kext")["Enabled"] is False:
|
if self.get_kext_by_bundle_path("RestrictEvents.kext")["Enabled"] is False:
|
||||||
# Ensure this is done at the end so all previous RestrictEvents patches are applied
|
# Ensure this is done at the end so all previous RestrictEvents patches are applied
|
||||||
# RestrictEvents and EFICheckDisabler will confilict if both are injected
|
# RestrictEvents and EFICheckDisabler will confilict if both are injected
|
||||||
|
|||||||
Reference in New Issue
Block a user