Undervolting

This commit is contained in:
Serge
2023-06-17 10:32:30 +02:00
parent 05aae069b4
commit 0b030da41b
21 changed files with 2987 additions and 322 deletions

View File

@@ -39,6 +39,7 @@ public static class AppConfig
}
catch
{
Logger.WriteLine("Broken config: " + text);
Init();
}
}
@@ -218,9 +219,9 @@ public static class AppConfig
return GetString(name + "_" + Modes.GetCurrent());
}
public static int GetMode(string name)
public static int GetMode(string name, int empty = -1)
{
return Get(name + "_" + Modes.GetCurrent());
return Get(name + "_" + Modes.GetCurrent(), empty);
}
public static bool IsMode(string name)