This commit is contained in:
Serge
2023-06-30 14:30:50 +02:00
parent dea2b73d7f
commit c4adb1eb8b
14 changed files with 935 additions and 922 deletions

View File

@@ -78,14 +78,14 @@ namespace GHelper.Mode
if (AppConfig.Get("auto_apply_power_plan") != 0)
{
if (AppConfig.GetModeString("scheme") is not null)
NativeMethods.SetPowerScheme(AppConfig.GetModeString("scheme"));
PowerNative.SetPowerScheme(AppConfig.GetModeString("scheme"));
else
NativeMethods.SetPowerScheme(Modes.GetBase(mode));
PowerNative.SetPowerScheme(Modes.GetBase(mode));
}
if (AppConfig.GetMode("auto_boost") != -1)
{
NativeMethods.SetCPUBoost(AppConfig.GetMode("auto_boost"));
PowerNative.SetCPUBoost(AppConfig.GetMode("auto_boost"));
}
/*