mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
asm & csm: add more files to the profile backup
This commit is contained in:
parent
8166b63968
commit
092806ec66
4 changed files with 46 additions and 1 deletions
|
|
@ -1987,6 +1987,10 @@ namespace ServerManagerTool.Lib
|
|||
var profileFile = GetProfileFile(_profile);
|
||||
var gameIniFile = IOUtils.NormalizePath(Path.Combine(GetProfileServerConfigDir(_profile), Config.Default.ServerGameConfigFile));
|
||||
var gusIniFile = IOUtils.NormalizePath(Path.Combine(GetProfileServerConfigDir(_profile), Config.Default.ServerGameUserSettingsConfigFile));
|
||||
var adminFile = IOUtils.NormalizePath(Path.Combine(GetProfileSavedDir(_profile), Config.Default.ServerAdminFile));
|
||||
var exlusiveFile = IOUtils.NormalizePath(Path.Combine(GetProfileServerBinaryDir(_profile), Config.Default.ServerExclusiveFile));
|
||||
var whitelistFile = IOUtils.NormalizePath(Path.Combine(GetProfileServerBinaryDir(_profile), Config.Default.ServerWhitelistFile));
|
||||
|
||||
var launcherFile = GetLauncherFile();
|
||||
|
||||
if (!Directory.Exists(backupFolder))
|
||||
|
|
@ -2008,6 +2012,15 @@ namespace ServerManagerTool.Lib
|
|||
if (File.Exists(launcherFile))
|
||||
files.Add(launcherFile);
|
||||
|
||||
if (File.Exists(adminFile))
|
||||
files.Add(adminFile);
|
||||
|
||||
if (File.Exists(exlusiveFile))
|
||||
files.Add(exlusiveFile);
|
||||
|
||||
if (File.Exists(whitelistFile))
|
||||
files.Add(whitelistFile);
|
||||
|
||||
var comment = new StringBuilder();
|
||||
comment.AppendLine($"Windows Platform: {Environment.OSVersion.Platform}");
|
||||
comment.AppendLine($"Windows Version: {Environment.OSVersion.VersionString}");
|
||||
|
|
@ -2510,6 +2523,10 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
public static string GetProfileServerConfigDir(ServerProfileSnapshot profile) => Path.Combine(profile.InstallDirectory, Config.Default.ServerConfigRelativePath);
|
||||
|
||||
public static string GetProfileSavedDir(ServerProfileSnapshot profile) => Path.Combine(profile.InstallDirectory, Config.Default.SavedRelativePath);
|
||||
|
||||
public static string GetProfileServerBinaryDir(ServerProfileSnapshot profile) => Path.Combine(profile.InstallDirectory, Config.Default.ServerBinaryRelativePath);
|
||||
|
||||
private static string GetRconMessageCommand(string commandValue)
|
||||
{
|
||||
switch (commandValue.ToLower())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue