Server File Changes

- added Testlive server option
- changed code to use different appids.
This commit is contained in:
Brett Hewitson 2022-08-07 19:48:44 +10:00
parent 96ba2c3474
commit a20354c1b1
32 changed files with 969 additions and 812 deletions

View file

@ -32,6 +32,9 @@ namespace ServerManagerTool.Lib
public bool MOTDIntervalEnabled;
public int MOTDInterval;
public string AppId;
public string AppIdServer;
public bool UseTestlive;
public string BranchName;
public string BranchPassword;
@ -75,6 +78,9 @@ namespace ServerManagerTool.Lib
MOTDIntervalEnabled = profile.MOTDIntervalEnabled && !string.IsNullOrWhiteSpace(profile.MOTD),
MOTDInterval = Math.Max(1, Math.Min(int.MaxValue, profile.MOTDInterval)),
AppId = profile.UseTestlive ? Config.Default.AppId_Testlive : Config.Default.AppId,
AppIdServer = profile.UseTestlive ? Config.Default.AppIdServer_Testlive : Config.Default.AppIdServer,
UseTestlive = profile.UseTestlive,
BranchName = profile.BranchName,
BranchPassword = profile.BranchPassword,