mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-19 13:46:05 +10:00
Merge pull request #1097 from Jazzzny/bestmacever
Fix Rosetta detection
This commit is contained in:
@@ -944,7 +944,7 @@ class Computer:
|
|||||||
|
|
||||||
def check_rosetta(self):
|
def check_rosetta(self):
|
||||||
result = subprocess.run("sysctl -in sysctl.proc_translated".split(), stdout=subprocess.PIPE).stdout.decode()
|
result = subprocess.run("sysctl -in sysctl.proc_translated".split(), stdout=subprocess.PIPE).stdout.decode()
|
||||||
if result:
|
if "1" in result:
|
||||||
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