Boost dropdown fix

This commit is contained in:
seerge
2023-04-12 12:05:57 +02:00
parent 08e1ed54cd
commit 6d0bb5bef7
4 changed files with 456 additions and 45 deletions

View File

@@ -1014,16 +1014,16 @@ namespace GHelper
AutoFans();
AutoPower(1000);
if (Program.config.getConfigPerf("auto_boost") != -1)
{
NativeMethods.SetCPUBoost(Program.config.getConfigPerf("auto_boost"));
}
if (Program.config.getConfigPerfString("scheme") is not null)
NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme"));
else
NativeMethods.SetPowerScheme(PerformanceMode);
if (Program.config.getConfigPerf("auto_boost") != -1)
{
NativeMethods.SetCPUBoost(Program.config.getConfigPerf("auto_boost"));
}
if (NativeMethods.PowerGetEffectiveOverlayScheme(out Guid activeScheme) == 0)
{
Debug.WriteLine("Effective :" + activeScheme);