mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-19 13:46:05 +10:00
better fix
This commit is contained in:
@@ -943,9 +943,8 @@ class Computer:
|
|||||||
self.oclp_sys_signed = sys_plist["Custom Signature"]
|
self.oclp_sys_signed = sys_plist["Custom Signature"]
|
||||||
|
|
||||||
def check_rosetta(self):
|
def check_rosetta(self):
|
||||||
arch = subprocess.run("uname -m".split(), stdout=subprocess.PIPE).stdout.decode()
|
result = subprocess.run("sysctl -in sysctl.proc_translated".split(), stdout=subprocess.PIPE).stdout.decode()
|
||||||
kernel_ver = subprocess.run("sysctl kern.version".split(), stdout=subprocess.PIPE).stdout.decode()
|
if "1" in result:
|
||||||
if "arm64" not in arch and "ARM64" in kernel_ver:
|
|
||||||
self.rosetta_active = True
|
self.rosetta_active = True
|
||||||
else:
|
else:
|
||||||
self.rosetta_active = False
|
self.rosetta_active = False
|
||||||
Reference in New Issue
Block a user