Removed .bak of Cyber Saves

Might help prevent some errors or future lockouts from Cyber.
This commit is contained in:
Kurt
2014-08-16 22:12:42 -07:00
parent f3c0bb439a
commit 76d93e1c73

View File

@@ -7496,12 +7496,12 @@ private void exportSAV(object sender, EventArgs e)
string path = cySAV.FileName;
string ext = Path.GetExtension(path);
if (File.Exists(path))
{
// File already exists, save a .bak
byte[] backupfile = File.ReadAllBytes(path);
File.WriteAllBytes(path + ".bak", backupfile);
}
//if (File.Exists(path))
//{
// // File already exists, save a .bak
// byte[] backupfile = File.ReadAllBytes(path);
// File.WriteAllBytes(path + ".bak", backupfile);
//}
File.WriteAllBytes(path, cybersav);
MessageBox.Show("Saved Cyber SAV.", "Alert");
}