Skip to content

Commit 64d6fb5

Browse files
Merge pull request #33 from winglessraven/dev
Add workaround for save db not being accessible for backups
2 parents 65296ea + 13fc760 commit 64d6fb5

File tree

11 files changed

+43
-25
lines changed

11 files changed

+43
-25
lines changed
0 Bytes
Binary file not shown.

Dead Matter Server Manager/Dead Matter Server Manager/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.12.1.0")]
36-
[assembly: AssemblyFileVersion("1.12.1.0")]
35+
[assembly: AssemblyVersion("1.12.2.0")]
36+
[assembly: AssemblyFileVersion("1.12.2.0")]

Dead Matter Server Manager/Dead Matter Server Manager/ServerManager.Designer.cs

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dead Matter Server Manager/Dead Matter Server Manager/ServerManager.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,8 +2400,26 @@ await Task.Run(() =>
24002400
}
24012401
}
24022402

2403-
backupFile.CreateEntryFromFile(mostRecentFile, Path.GetFileName(mostRecentFile), CompressionLevel.Optimal);
2403+
try
2404+
{
2405+
Process copyDB = new Process();
2406+
copyDB.StartInfo.UseShellExecute = false;
2407+
copyDB.StartInfo.RedirectStandardOutput = true;
2408+
copyDB.StartInfo.FileName = "cmd.exe";
2409+
copyDB.StartInfo.Arguments = "/C copy \"" + mostRecentFile + "\" \"" + mostRecentFile + "_" + "\"";
2410+
copyDB.Start();
2411+
WriteLog(copyDB.StandardOutput.ReadToEnd(),"INFO",null);
2412+
copyDB.WaitForExit();
2413+
copyDB.Close();
2414+
backupFile.CreateEntryFromFile(mostRecentFile + "_", Path.GetFileName(mostRecentFile), CompressionLevel.Optimal);
2415+
File.Delete(mostRecentFile + "_");
2416+
}
2417+
catch (IOException execption)
2418+
{
2419+
WriteLog(execption.Message,"ERROR",null);
2420+
}
24042421

2422+
24052423
backupFile.CreateEntryFromFile(gameIni, Path.GetFileName(gameIni), CompressionLevel.Optimal);
24062424
backupFile.CreateEntryFromFile(engineIni, Path.GetFileName(engineIni), CompressionLevel.Optimal);
24072425

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Dead Matter Server Manager/DeadMatterServerManagerInstaller/DeadMatterServerManagerInstaller.vdproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6766,15 +6766,15 @@
67666766
{
67676767
"Name" = "8:Microsoft Visual Studio"
67686768
"ProductName" = "8:Dead Matter Server Manager"
6769-
"ProductCode" = "8:{40E340E9-2970-491A-94F6-37ECBC2BBD9D}"
6770-
"PackageCode" = "8:{E1C51005-6589-4E96-B8BC-D2137B1C60FA}"
6769+
"ProductCode" = "8:{4F59C432-A749-4756-8022-3F121392F259}"
6770+
"PackageCode" = "8:{9302A9DA-6295-453E-9905-8A2BFC107A22}"
67716771
"UpgradeCode" = "8:{BC345328-E944-4F2F-9559-E95043070B11}"
67726772
"AspNetVersion" = "8:4.0.30319.0"
67736773
"RestartWWWService" = "11:FALSE"
67746774
"RemovePreviousVersions" = "11:TRUE"
67756775
"DetectNewerInstalledVersion" = "11:TRUE"
67766776
"InstallAllUsers" = "11:FALSE"
6777-
"ProductVersion" = "8:1.12.1"
6777+
"ProductVersion" = "8:1.12.2"
67786778
"Manufacturer" = "8:winglessraven"
67796779
"ARPHELPTELEPHONE" = "8:"
67806780
"ARPHELPLINK" = "8:"

0 commit comments

Comments
 (0)