Custom Power schemes support

This commit is contained in:
seerge
2023-04-11 18:50:12 +02:00
parent 2daf1f5434
commit bee7f35475
8 changed files with 86 additions and 8 deletions

View File

@@ -1019,7 +1019,10 @@ namespace GHelper
NativeMethods.SetCPUBoost(Program.config.getConfigPerf("auto_boost"));
}
NativeMethods.SetPowerScheme(PerformanceMode);
if (Program.config.getConfigPerfString("scheme") is not null)
NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme"));
else
NativeMethods.SetPowerScheme(PerformanceMode);
if (NativeMethods.PowerGetEffectiveOverlayScheme(out Guid activeScheme) == 0)
{