Fixed a bug with the Server Shutdown when the CheckForOnlinePlayers option not selected.

Fixed a bug when the backup path was a root directory that caused a 'Invalid URI: A Dos path must be rooted, for example' crash.
Language File updates
This commit is contained in:
Brett Hewitson 2021-12-15 10:50:04 +10:00
parent 4513fe119b
commit bfc8b87872
14 changed files with 199 additions and 379 deletions

View file

@ -525,9 +525,9 @@ namespace ServerManagerTool
var installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var backupFolder = includeBackup
? IOUtils.NormalizePath(string.IsNullOrWhiteSpace(Config.Default.BackupPath)
? string.IsNullOrWhiteSpace(Config.Default.BackupPath)
? Path.Combine(Config.Default.DataPath, Config.Default.BackupRelativePath)
: Path.Combine(Config.Default.BackupPath))
: Path.Combine(Config.Default.BackupPath)
: null;
SettingsUtils.BackupUserConfigSettings(Config.Default, "userconfig.json", installFolder, backupFolder);