From bfbaeb7c75306cfa1156ef9ee0da9bd951cc024a Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sat, 28 Sep 2024 06:30:48 +0700 Subject: [PATCH] Resizable Bar appears even without a discrete GPU --- Scripts/config_prodigy.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index 84baa45..0454d27 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -37,8 +37,8 @@ class ConfigProdigy: not self.utils.contains_any(chipset_data.IntelChipsets, motherboard_chipset, start=97) is None or \ not self.utils.contains_any(chipset_data.IntelChipsets, motherboard_chipset, start=49, end=60) is None - def check_resizable_bar_support(self, motherboard_chipset, cpu_codename, discrete_gpu): - return discrete_gpu and (not self.utils.contains_any(chipset_data.AMDChipsets, motherboard_chipset) is None or not self.utils.contains_any(cpu_data.IntelCPUGenerations, cpu_codename, start=10) is None) + def check_resizable_bar_support(self, motherboard_chipset, cpu_codename): + return not self.utils.contains_any(chipset_data.AMDChipsets, motherboard_chipset) is None or not self.utils.contains_any(cpu_data.IntelCPUGenerations, cpu_codename, start=10) is None def is_low_end_intel_cpu(self, processor_name): return any(brand in processor_name for brand in ["Celeron", "Pentium"]) @@ -244,8 +244,7 @@ class ConfigProdigy: config["Booter"]["Quirks"]["RebuildAppleMemoryMap"] = not config["Booter"]["Quirks"]["EnableWriteUnprotector"] config["Booter"]["Quirks"]["ResizeAppleGpuBars"] = 0 if self.check_resizable_bar_support( hardware.get("Motherboard Chipset"), - hardware.get("CPU Codename"), - hardware.get("Discrete GPU") + hardware.get("CPU Codename") ) else -1 config["Booter"]["Quirks"]["SetupVirtualMap"] = not (not self.utils.contains_any(chipset_data.AMDChipsets, hardware.get("Motherboard Chipset"), end=5) is None or \ "ASUS" in hardware.get("Motherboard Name") and self.is_intel_hedt_cpu(hardware.get("CPU Codename")) and config["Booter"]["Quirks"]["DevirtualiseMmio"])