Skip to content

Commit

Permalink
Use config.json file to store application settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed Jan 7, 2024
1 parent 104cb12 commit baab12a
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 189 deletions.
31 changes: 0 additions & 31 deletions Mario Kart Wii Rich Presence Redux/App.config
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Mario_Kart_Wii_Rich_Presence_Redux.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<userSettings>
<Mario_Kart_Wii_Rich_Presence_Redux.My.MySettings>
<setting name="startUrl" serializeAs="String">
<value>https://wiimmfi.de/stats/mkw/room/p1</value>
</setting>
<setting name="shareBtn" serializeAs="String">
<value>True</value>
</setting>
<setting name="addText" serializeAs="String">
<value>0000-0000-0000</value>
</setting>
<setting name="useOwnApp" serializeAs="String">
<value>False</value>
</setting>
<setting name="userAppId" serializeAs="String">
<value />
</setting>
<setting name="useTrackState" serializeAs="String">
<value>False</value>
</setting>
<setting name="useTextDetails" serializeAs="String">
<value>False</value>
</setting>
<setting name="useCustomCourseImages" serializeAs="String">
<value>False</value>
</setting>
</Mario_Kart_Wii_Rich_Presence_Redux.My.MySettings>
</userSettings>
</configuration>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<MyApplicationData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MySubMain>true</MySubMain>
<MainForm>frmMain</MainForm>
<SingleInstance>true</SingleInstance>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
Expand Down
96 changes: 0 additions & 96 deletions Mario Kart Wii Rich Presence Redux/My Project/Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 2 additions & 27 deletions Mario Kart Wii Rich Presence Redux/My Project/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles />
<Settings>
<Setting Name="startUrl" Type="System.Uri" Scope="User">
<Value Profile="(Default)">https://wiimmfi.de/stats/mkw/room/p1</Value>
</Setting>
<Setting Name="shareBtn" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="addText" Type="System.String" Scope="User">
<Value Profile="(Default)">0000-0000-0000</Value>
</Setting>
<Setting Name="useOwnApp" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="userAppId" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="useTrackState" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="useTextDetails" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="useCustomCourseImages" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
<Settings />
</SettingsFile>
Loading

0 comments on commit baab12a

Please sign in to comment.