2022-11-15 23:40:54 +01:00
|
|
|
|
using CommonHelpers;
|
2022-11-13 13:36:50 +01:00
|
|
|
|
|
|
|
|
|
|
namespace PerformanceOverlay
|
|
|
|
|
|
{
|
2022-12-08 10:35:53 +01:00
|
|
|
|
internal sealed class Settings : BaseSettings
|
2022-11-13 13:36:50 +01:00
|
|
|
|
{
|
2022-12-08 10:35:53 +01:00
|
|
|
|
public static readonly Settings Default = new Settings();
|
|
|
|
|
|
|
|
|
|
|
|
public Settings() : base("Settings")
|
|
|
|
|
|
{
|
|
|
|
|
|
TouchSettings = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public OverlayMode OSDMode
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Get<OverlayMode>("OSDMode", OverlayMode.FPS); }
|
|
|
|
|
|
set { Set("OSDMode", value); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ShowOSDShortcut
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Get<string>("ShowOSDShortcut", "Shift+F11"); }
|
|
|
|
|
|
set { Set("ShowOSDShortcut", value); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string CycleOSDShortcut
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Get<string>("CycleOSDShortcut", "Alt+Shift+F11"); }
|
|
|
|
|
|
set { Set("CycleOSDShortcut", value); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowOSD
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Get<bool>("ShowOSD", true); }
|
|
|
|
|
|
set { Set("ShowOSD", value); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool EnableFullOnPowerControl
|
2022-11-13 13:36:50 +01:00
|
|
|
|
{
|
2022-12-08 10:35:53 +01:00
|
|
|
|
get { return Get<bool>("EnableFullOnPowerControl", false); }
|
|
|
|
|
|
set { Set("EnableFullOnPowerControl", value); }
|
2022-11-13 13:36:50 +01:00
|
|
|
|
}
|
2022-12-19 12:13:17 +01:00
|
|
|
|
|
|
|
|
|
|
public bool EnableKernelDrivers
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Get<bool>("EnableKernelDrivers", false); }
|
|
|
|
|
|
set { Set("EnableKernelDrivers", value); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool EnableExperimentalFeatures
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Instance.IsDEBUG; }
|
|
|
|
|
|
}
|
2022-11-13 13:36:50 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|