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