mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-09-08 19:25:09 -05:00
Fixed "backup already found" error when Loading extracted data
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user