mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-08-15 07:22:32 -05:00
Fixed WildEditor showing success messages for every file upon repairing
This commit is contained in:
@@ -104,7 +104,10 @@ namespace DSPRE.ROMFiles {
|
||||
#endregion
|
||||
|
||||
#region Methods (1)
|
||||
public void SaveToFileDefaultDir(int IDtoReplace) => SaveToFileDefaultDir(DirNames.encounters, IDtoReplace);
|
||||
public void SaveToFileDefaultDir(int IDtoReplace, bool showSuccessMessage = true) {
|
||||
SaveToFileDefaultDir(DirNames.encounters, IDtoReplace, showSuccessMessage);
|
||||
}
|
||||
|
||||
|
||||
public void ReportErrors(List<string> errorList) {
|
||||
string fullError = "The following sections of this encounter file couldn't be read correctly: " + Environment.NewLine;
|
||||
@@ -411,7 +414,9 @@ namespace DSPRE.ROMFiles {
|
||||
}
|
||||
return newData.ToArray();
|
||||
}
|
||||
public void SaveToFileExplorePath(string suggestedFileName) => SaveToFileExplorePath("DPPt Encounter File", "enc", suggestedFileName);
|
||||
public void SaveToFileExplorePath(string suggestedFileName, bool showSuccessMessage = true) {
|
||||
SaveToFileExplorePath("DPPt Encounter File", "enc", suggestedFileName, showSuccessMessage);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -679,7 +684,10 @@ namespace DSPRE.ROMFiles {
|
||||
}
|
||||
return newData.ToArray();
|
||||
}
|
||||
public void SaveToFileExplorePath(string suggestedFileName) => SaveToFileExplorePath("HGSS Encounter File", "enc", suggestedFileName);
|
||||
|
||||
public void SaveToFileExplorePath(string suggestedFileName, bool showSuccessMessage = true) {
|
||||
SaveToFileExplorePath("HGSS Encounter File", "enc", suggestedFileName, showSuccessMessage);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -694,10 +694,10 @@ namespace DSPRE {
|
||||
|
||||
if (d == DialogResult.Yes) {
|
||||
for (int i = 0; i < Directory.GetFiles(encounterFileFolder).Length; i++) {
|
||||
currentFile.SaveToFileDefaultDir(i);
|
||||
currentFile.SaveToFileDefaultDir(i, showSuccessMessage: false);
|
||||
}
|
||||
|
||||
MessageBox.Show("Operation completed", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
MessageBox.Show("All repairable fields have been fixed.", "Operation completed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -729,10 +729,10 @@ namespace DSPRE {
|
||||
|
||||
if (d == DialogResult.Yes) {
|
||||
for (int i = 0; i < Directory.GetFiles(encounterFileFolder).Length; i++) {
|
||||
currentFile.SaveToFileDefaultDir(i);
|
||||
currentFile.SaveToFileDefaultDir(i, showSuccessMessage: false);
|
||||
}
|
||||
|
||||
MessageBox.Show("Operation completed", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
MessageBox.Show("All repairable fields have been fixed.", "Operation completed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user