Skip to content

Commit

Permalink
Merge pull request #33 from winglessraven/dev
Browse files Browse the repository at this point in the history
Add workaround for save db not being accessible for backups
  • Loading branch information
winglessraven authored Mar 29, 2021
2 parents 65296ea + 13fc760 commit 64d6fb5
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 25 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.12.1.0")]
[assembly: AssemblyFileVersion("1.12.1.0")]
[assembly: AssemblyVersion("1.12.2.0")]
[assembly: AssemblyFileVersion("1.12.2.0")]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2400,8 +2400,26 @@ await Task.Run(() =>
}
}

backupFile.CreateEntryFromFile(mostRecentFile, Path.GetFileName(mostRecentFile), CompressionLevel.Optimal);
try
{
Process copyDB = new Process();
copyDB.StartInfo.UseShellExecute = false;
copyDB.StartInfo.RedirectStandardOutput = true;
copyDB.StartInfo.FileName = "cmd.exe";
copyDB.StartInfo.Arguments = "/C copy \"" + mostRecentFile + "\" \"" + mostRecentFile + "_" + "\"";
copyDB.Start();
WriteLog(copyDB.StandardOutput.ReadToEnd(),"INFO",null);
copyDB.WaitForExit();
copyDB.Close();
backupFile.CreateEntryFromFile(mostRecentFile + "_", Path.GetFileName(mostRecentFile), CompressionLevel.Optimal);
File.Delete(mostRecentFile + "_");
}
catch (IOException execption)
{
WriteLog(execption.Message,"ERROR",null);
}


backupFile.CreateEntryFromFile(gameIni, Path.GetFileName(gameIni), CompressionLevel.Optimal);
backupFile.CreateEntryFromFile(engineIni, Path.GetFileName(engineIni), CompressionLevel.Optimal);

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6766,15 +6766,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Dead Matter Server Manager"
"ProductCode" = "8:{40E340E9-2970-491A-94F6-37ECBC2BBD9D}"
"PackageCode" = "8:{E1C51005-6589-4E96-B8BC-D2137B1C60FA}"
"ProductCode" = "8:{4F59C432-A749-4756-8022-3F121392F259}"
"PackageCode" = "8:{9302A9DA-6295-453E-9905-8A2BFC107A22}"
"UpgradeCode" = "8:{BC345328-E944-4F2F-9559-E95043070B11}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.12.1"
"ProductVersion" = "8:1.12.2"
"Manufacturer" = "8:winglessraven"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down
Binary file not shown.

0 comments on commit 64d6fb5

Please sign in to comment.