mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-21 03:04:31 +10:00
sys_patch_detect.py: Add support for Web Drivers on Tesla/Kepler
This commit is contained in:
@@ -172,3 +172,11 @@ class generate_defaults:
|
||||
settings.force_vmm = False
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
nv_web_status = subprocess.run(["defaults", "read", "com.dortania.opencore-legacy-patcher", "Force_Web_Drivers"], stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
|
||||
if nv_web_status in ["1", "true"]:
|
||||
settings.force_nv_web = True
|
||||
else:
|
||||
subprocess.run(["defaults", "write", "com.dortania.opencore-legacy-patcher", "Force_Web_Drivers", "-bool", "FALSE"])
|
||||
settings.force_nv_web = False
|
||||
Reference in New Issue
Block a user