Skip to content

Commit

Permalink
Implement experimental non-Metal support
Browse files Browse the repository at this point in the history
  • Loading branch information
educovas committed Sep 10, 2023
1 parent fd17caf commit 214e31e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion data/sys_patch_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _generate_sys_patch_dict(self):
"OpenGL.framework": "10.14.3",
"CoreDisplay.framework": f"10.14.4-{self.os_major}",
"IOSurface.framework": f"10.15.7-{self.os_major}",
**({"QuartzCore.framework": f"10.15.7-{self.os_major}"} if self.os_major < os_data.os_data.sonoma else {}),
"QuartzCore.framework": f"10.15.7-{self.os_major}",
},
"/System/Library/PrivateFrameworks": {
"GPUSupport.framework": "10.14.3",
Expand Down Expand Up @@ -149,6 +149,8 @@ def _generate_sys_patch_dict(self):
**({"defaults write /Library/Preferences/.GlobalPreferences.plist ShowDate -int 1": True } if self.os_float >= self.macOS_12_4 else {}),
"defaults write /Library/Preferences/.GlobalPreferences.plist InternalDebugUseGPUProcessForCanvasRenderingEnabled -bool false": True,
"defaults write /Library/Preferences/.GlobalPreferences.plist WebKitExperimentalUseGPUProcessForCanvasRenderingEnabled -bool false": True,
**({"defaults write /Library/Preferences/.GlobalPreferences.plist WebKitPreferences.acceleratedDrawingEnabled -bool false": True} if self.os_major >= os_data.os_data.sonoma else {}),
**({"defaults write /Library/Preferences/.GlobalPreferences.plist NSEnableAppKitMenus -bool false": True} if self.os_major >= os_data.os_data.sonoma else {}),
},
},
"Non-Metal IOAccelerator Common": {
Expand Down
3 changes: 2 additions & 1 deletion resources/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Constants:
def __init__(self) -> None:
# Patcher Versioning
self.patcher_version: str = "0.6.9" # OpenCore-Legacy-Patcher
self.patcher_support_pkg_version: str = "1.2.7" # PatcherSupportPkg
self.patcher_support_pkg_version: str = "1.2.8" # PatcherSupportPkg
self.copyright_date: str = "Copyright © 2020-2023 Dortania"
self.patcher_name: str = "OpenCore Legacy Patcher"

Expand Down Expand Up @@ -239,6 +239,7 @@ def __init__(self) -> None:
os_data.os_data.big_sur,
os_data.os_data.monterey,
os_data.os_data.ventura,
os_data.os_data.sonoma,
]

@property
Expand Down

0 comments on commit 214e31e

Please sign in to comment.