mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Auto Update tweaks
This commit is contained in:
parent
cf51ca0aef
commit
08cb54bb8b
2 changed files with 3 additions and 3 deletions
|
|
@ -1265,7 +1265,6 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
// update the version number
|
||||
_profile.LastInstalledVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
||||
_profile.ServerUpdated = true;
|
||||
|
||||
LogProfileMessage("Updated server from cache. See patch notes.");
|
||||
LogProfileMessage($"Server version: {_profile.LastInstalledVersion}.");
|
||||
|
|
@ -1948,7 +1947,6 @@ namespace ServerManagerTool.Lib
|
|||
// if unable to delete, do not bother
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
|||
|
|
@ -782,6 +782,8 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
// build a list of mods to be processed
|
||||
var modIdList = new List<string>();
|
||||
modIdList.AddRange(_profile.ServerModIds);
|
||||
|
||||
modIdList = ModUtils.ValidateModList(modIdList);
|
||||
|
||||
// get the details of the mods to be processed.
|
||||
|
|
@ -1885,8 +1887,8 @@ namespace ServerManagerTool.Lib
|
|||
LogProfileMessage("Back up world files started...");
|
||||
|
||||
var worldFileName = Path.GetFileName(_profile.GameFile);
|
||||
var mapName = Path.GetFileNameWithoutExtension(_profile.GameFile);
|
||||
var backupFolder = GetServerBackupFolder(_profile);
|
||||
var mapName = Path.GetFileNameWithoutExtension(_profile.GameFile);
|
||||
var backupFileName = $"{mapName}_{_startTime:yyyyMMdd_HHmmss}{Config.Default.BackupExtension}";
|
||||
var backupFile = IOUtils.NormalizePath(Path.Combine(backupFolder, backupFileName));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue