Skip to content

Commit 1d6043c

Browse files
committed
Store PowerControl settings in .ini
1 parent 1ffc925 commit 1d6043c

File tree

6 files changed

+59
-158
lines changed

6 files changed

+59
-158
lines changed

PowerControl/PowerControl.csproj

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@
4747
<AutoGen>True</AutoGen>
4848
<DependentUpon>Resources.resx</DependentUpon>
4949
</Compile>
50-
<Compile Update="Settings.Designer.cs">
51-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
52-
<AutoGen>True</AutoGen>
53-
<DependentUpon>Settings.settings</DependentUpon>
54-
</Compile>
5550
</ItemGroup>
5651

5752
<ItemGroup>
@@ -77,10 +72,6 @@
7772
<None Update="Resources\RyzenAdj\WinRing0x64.sys">
7873
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7974
</None>
80-
<None Update="Settings.settings">
81-
<Generator>SettingsSingleFileGenerator</Generator>
82-
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
83-
</None>
8475
</ItemGroup>
8576

8677
</Project>

PowerControl/Program.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ internal static class Program
1414
[STAThread]
1515
static void Main()
1616
{
17-
#if DEBUG
18-
Settings.Default.EnableExperimentalFeatures = true;
19-
#endif
20-
2117
if (Settings.Default.EnableExperimentalFeatures)
2218
{
2319
for (int i = 0; !VangoghGPU.IsSupported; i++)

PowerControl/Settings.Designer.cs

Lines changed: 0 additions & 98 deletions
This file was deleted.

PowerControl/Settings.cs

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
using CommonHelpers;
2+
3+
namespace PowerControl
4+
{
5+
internal sealed class Settings : BaseSettings
6+
{
7+
public static readonly Settings Default = new Settings();
8+
9+
public Settings() : base("Settings")
10+
{
11+
TouchSettings = true;
12+
}
13+
14+
public string MenuUpKey
15+
{
16+
get { return Get("MenuUpKey", "Ctrl+Win+Numpad8"); }
17+
set { Set("MenuUpKey", value); }
18+
}
19+
20+
public string MenuDownKey
21+
{
22+
get { return Get("MenuDownKey", "Ctrl+Win+Numpad2"); }
23+
set { Set("MenuDownKey", value); }
24+
}
25+
26+
public string MenuLeftKey
27+
{
28+
get { return Get("MenuLeftKey", "Ctrl+Win+Numpad6"); }
29+
set { Set("MenuLeftKey", value); }
30+
}
31+
32+
public string MenuRightKey
33+
{
34+
get { return Get("MenuRightKey", "Ctrl+Win+Numpad6"); }
35+
set { Set("MenuRightKey", value); }
36+
}
37+
38+
public bool EnableNeptuneController
39+
{
40+
get { return Get<bool>("EnableNeptuneController", true); }
41+
set { Set("EnableNeptuneController", value); }
42+
}
43+
44+
public bool EnableVolumeControls
45+
{
46+
get { return Get<bool>("EnableVolumeControls", true); }
47+
set { Set("EnableVolumeControls", value); }
48+
}
49+
50+
public bool EnableExperimentalFeatures
51+
{
52+
#if DEBUG
53+
get { return true; }
54+
#else
55+
get { return false; }
56+
#endif
57+
}
58+
}
59+
}

PowerControl/Settings.settings

Lines changed: 0 additions & 27 deletions
This file was deleted.

SteamController/App.config

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)