Fix Google Fonts rendering for HD4000

This commit is contained in:
Mykola Grymalyuk
2021-06-19 20:47:32 -06:00
parent ed6fee1f94
commit abc1ca5ec9
3 changed files with 10 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class Constants:
self.debugenhancer_version = "1.0.3"
self.innie_version = "1.3.0"
self.fw_kext = "1.0.0"
self.patcher_support_pkg_version = "0.0.4" # PatcherSupportPkg
self.patcher_support_pkg_version = "0.0.6" # PatcherSupportPkg
# Get resource path
self.current_path = Path(__file__).parent.parent.resolve()
@@ -435,6 +435,10 @@ class Constants:
def payload_apple_frameworks_path_accel_ts2(self):
return self.payload_apple_frameworks_path / Path("Graphics-Acceleration-TeraScale-2")
@property
def payload_apple_frameworks_path_accel_ivy(self):
return self.payload_apple_frameworks_path / Path("Graphics-Acceleration-Ivy-Bridge")
@property
def payload_apple_lauchd_path(self):
return self.payload_apple_root_path / Path("LaunchDaemons")

View File

@@ -203,6 +203,8 @@ class PatchSysVolume:
self.add_new_binaries(SysPatchArray.AddIntelGen3Accel, self.constants.legacy_intel_gen3_path)
print("- Fixing Acceleration in CoreMedia")
subprocess.run(["defaults", "write", "com.apple.coremedia", "hardwareVideoDecoder", "-string", "disable"], stdout=subprocess.PIPE).stdout.decode().strip().encode()
print("- Merging Ivy Bridge Frameworks")
self.elevated(["ditto", self.constants.payload_apple_frameworks_path_accel_ivy, self.mount_frameworks], stdout=subprocess.PIPE).stdout.decode().strip().encode()
def gpu_accel_legacy_extended(self):
print("- Merging general legacy Frameworks")