steam-deck-tools/FanControl/Settings.cs
2023-09-05 22:46:18 +03:00

38 lines
936 B
C#

using CommonHelpers;
namespace FanControl
{
internal sealed class Settings : BaseSettings
{
public static readonly Settings Default = new Settings();
public Settings() : base("Settings")
{
TouchSettings = true;
}
public FanMode FanMode
{
get { return Get<FanMode>("FanMode", CommonHelpers.FanMode.Default); }
set { Set("FanMode", value); }
}
public bool AlwaysOnTop
{
get { return Get<bool>("AlwaysOnTop", true); }
set { Set("AlwaysOnTop", value); }
}
public int Silent4000RPMThreshold
{
get { return Get("Silent4000RPMThreshold", 85); }
set { Set("Silent4000RPMThreshold", Math.Min(Math.Max(80, value), 90)); }
}
public bool EnableExperimentalFeatures
{
get { return Instance.IsDEBUG; }
}
}
}