Minor refactoring

This commit is contained in:
Serge
2023-06-06 13:17:13 +02:00
parent 38739ca8f6
commit 328cd8f9f1
3 changed files with 60 additions and 51 deletions

View File

@@ -227,6 +227,12 @@ public static class AppConfig
return getConfig(name + "_" + mode);
}
public static bool isConfigPerf(string name)
{
int mode = getConfig("performance_mode");
return getConfig(name + "_" + mode) == 1;
}
public static void setConfigPerf(string name, int value)
{
int mode = getConfig("performance_mode");