mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 04:19:13 -05:00
Removed .bak of Cyber Saves
Might help prevent some errors or future lockouts from Cyber.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user