Working server selection and INI rewrite

This commit is contained in:
Chord 2017-03-19 15:46:03 -04:00
parent bf35d3aea1
commit 7dcfcf81c6
13 changed files with 301 additions and 77 deletions

View file

@ -32,8 +32,8 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
// Stamp
// [assembly: AssemblyInformationalVersion("%version% [ %branch% @ %shorthash%%haschanges% ]")]

View file

@ -108,5 +108,29 @@ namespace PSLauncher.Properties {
this["ServerList"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool GenerateClientINI {
get {
return ((bool)(this["GenerateClientINI"]));
}
set {
this["GenerateClientINI"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")]
public int ServerSelection {
get {
return ((int)(this["ServerSelection"]));
}
set {
this["ServerSelection"] = value;
}
}
}
}

View file

@ -26,5 +26,11 @@
<string>PSForever,play.psforever.net,51000</string>
&lt;/ArrayOfString&gt;</Value>
</Setting>
<Setting Name="GenerateClientINI" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ServerSelection" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
</Settings>
</SettingsFile>