mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 13:50:00 +10:00
sys_patch_helpers: Print as ASCII
This commit is contained in:
@@ -148,7 +148,9 @@ class sys_patch_helpers:
|
|||||||
|
|
||||||
|
|
||||||
def remove_news_widgets(self):
|
def remove_news_widgets(self):
|
||||||
# On Metal 1 GPUs, News
|
# On Ivy Bridge and Haswell iGPUs, RenderBox will crash the News Widgets in
|
||||||
|
# Notification Centre. To ensure users can access Notifications normally,
|
||||||
|
# we manually remove all News Widgets
|
||||||
if self.constants.detected_os < os_data.os_data.ventura:
|
if self.constants.detected_os < os_data.os_data.ventura:
|
||||||
return
|
return
|
||||||
print("- Parsing Notification Centre Widgets")
|
print("- Parsing Notification Centre Widgets")
|
||||||
@@ -175,7 +177,7 @@ class sys_patch_helpers:
|
|||||||
continue
|
continue
|
||||||
if not b'com.apple.news' in sub_data[sub_entry][2]:
|
if not b'com.apple.news' in sub_data[sub_entry][2]:
|
||||||
continue
|
continue
|
||||||
print(f" - Found News Widget to remove: {sub_data[sub_entry][2]}")
|
print(f" - Found News Widget to remove: {sub_data[sub_entry][2].decode('ascii')}")
|
||||||
data["widgets"]["instances"].remove(widget)
|
data["widgets"]["instances"].remove(widget)
|
||||||
did_find = True
|
did_find = True
|
||||||
if did_find:
|
if did_find:
|
||||||
|
|||||||
Reference in New Issue
Block a user