Skip GPU check for devices w/o GPU #3360

This commit is contained in:
Serge
2024-11-11 10:44:24 +01:00
parent be3e15cd6e
commit 819f750591

View File

@@ -22,6 +22,12 @@ namespace GHelper.Gpu
public void InitGPUMode()
{
if (AppConfig.NoGpu())
{
settings.HideGPUModes(false);
return;
}
int eco = Program.acpi.DeviceGet(AsusACPI.GPUEco);
int mux = Program.acpi.DeviceGet(AsusACPI.GPUMux);
@@ -44,7 +50,7 @@ namespace GHelper.Gpu
// GPU mode not supported
if (eco < 0 && mux < 0)
{
if (gpuExists is null) gpuExists = (!AppConfig.NoGpu()) && Program.acpi.GetFan(AsusFan.GPU) >= 0;
if (gpuExists is null) gpuExists = Program.acpi.GetFan(AsusFan.GPU) >= 0;
settings.HideGPUModes((bool)gpuExists);
}
}