Fixed "backup already found" error when Loading extracted data

This commit is contained in:
AdAstra-LD
2021-01-08 20:25:51 +01:00
parent 552f948857
commit 76736663bc

View File

@@ -80,7 +80,9 @@ namespace DSPRE {
private void decompressOverlay(int overlayNumber, bool makeBackup) {
String overlayFilePath = workDir + "overlay" + "\\" + "overlay_" + overlayNumber.ToString("D4") + ".bin";
if (makeBackup) {
if (makeBackup) {
if (File.Exists(overlayFilePath + ".bak"))
File.Delete(overlayFilePath + ".bak");
File.Copy(overlayFilePath, overlayFilePath + ".bak" );
}
@@ -1120,7 +1122,6 @@ namespace DSPRE {
wildEditorButton.Enabled = true;
loadRomButton.Enabled = false;
statusLabel.Text = "Ready";
}
private void saveRom_Click(object sender, EventArgs e)