Standardize index for GPU check

This commit is contained in:
Hoang Hong Quan
2024-10-10 18:45:36 +07:00
parent ec1c4d35fe
commit f3bc4e357e
3 changed files with 6 additions and 6 deletions
Executable → Regular
+1 -1
View File
@@ -135,7 +135,7 @@ class KextMaestro:
"Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type"):
selected_kexts.append("NootedRed")
else:
selected_kexts.append("NootRX" if "Navi 2" in list(hardware_report.get("GPU").items())[-1][-1].get("Codename") else "WhateverGreen")
selected_kexts.append("NootRX" if "Navi 2" in list(hardware_report.get("GPU").items())[0][-1].get("Codename") else "WhateverGreen")
if "Laptop" in hardware_report.get("Motherboard").get("Platform") and "ASUS" in hardware_report.get("Motherboard").get("Name") or \
"NootedRed" in selected_kexts or \