mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
Fix codesigning crashes
This commit is contained in:
@@ -6,8 +6,6 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import platform
|
import platform
|
||||||
import tkinter as tk
|
|
||||||
from tkinter import colorchooser
|
|
||||||
|
|
||||||
from Resources import Build, ModelArray, Constants, SysPatch, Utilities
|
from Resources import Build, ModelArray, Constants, SysPatch, Utilities
|
||||||
|
|
||||||
@@ -374,10 +372,11 @@ Custom names will report as follows:
|
|||||||
""")
|
""")
|
||||||
change_menu = input("Set custom CPU Name(1,2,3): ")
|
change_menu = input("Set custom CPU Name(1,2,3): ")
|
||||||
if change_menu == "1":
|
if change_menu == "1":
|
||||||
temp_tk_root = tk.Tk()
|
print("")
|
||||||
temp_tk_root.wm_withdraw()
|
#temp_tk_root = tk.Tk()
|
||||||
self.constants.custom_color = colorchooser.askcolor(title="Choose color")
|
#temp_tk_root.wm_withdraw()
|
||||||
temp_tk_root.destroy()
|
#self.constants.custom_color = colorchooser.askcolor(title="Choose color")
|
||||||
|
#temp_tk_root.destroy()
|
||||||
elif change_menu == "2":
|
elif change_menu == "2":
|
||||||
self.constants.custom_color = ""
|
self.constants.custom_color = ""
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -136,9 +136,12 @@ class PatchSysVolume:
|
|||||||
# print("- Merging legacy Nvidia Kepler Kexts and Bundles")
|
# print("- Merging legacy Nvidia Kepler Kexts and Bundles")
|
||||||
# self.add_new_binaries(ModelArray.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path)
|
# self.add_new_binaries(ModelArray.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path)
|
||||||
elif dgpu_vendor == self.constants.pci_amd_ati:
|
elif dgpu_vendor == self.constants.pci_amd_ati:
|
||||||
print("- Merging legacy AMD Kexts and Bundles")
|
if dgpu_device in PCIIDArray.amd_ids().terascale_1_ids:
|
||||||
|
print("- Merging legacy TeraScale 1 AMD Kexts and Bundles")
|
||||||
self.delete_old_binaries(ModelArray.DeleteAMDAccel11)
|
self.delete_old_binaries(ModelArray.DeleteAMDAccel11)
|
||||||
self.add_new_binaries(ModelArray.AddAMDAccel11, self.constants.legacy_amd_path)
|
self.add_new_binaries(ModelArray.AddAMDAccel11, self.constants.legacy_amd_path)
|
||||||
|
#elif dgpu_device in PCIIDArray.amd_ids().terascale_2_ids:
|
||||||
|
# print("- Merging legacy AMD TeraScale 2 Kexts and Bundles")
|
||||||
if igpu_vendor:
|
if igpu_vendor:
|
||||||
print(f"- Found IGPU: {igpu_vendor}:{igpu_device}")
|
print(f"- Found IGPU: {igpu_vendor}:{igpu_device}")
|
||||||
if igpu_vendor == self.constants.pci_intel:
|
if igpu_vendor == self.constants.pci_intel:
|
||||||
|
|||||||
Reference in New Issue
Block a user