mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-08-23 19:34:17 -05:00
Created DecompressOverlay with string arg
This commit is contained in:
@@ -271,11 +271,9 @@ namespace DSPRE {
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
public static int DecompressOverlay(int overlayNumber, bool makeBackup = true) {
|
||||
string overlayFilePath = GetOverlayPath(overlayNumber);
|
||||
|
||||
public static int DecompressOverlay(string overlayFilePath, bool makeBackup = true) {
|
||||
if (!File.Exists(overlayFilePath)) {
|
||||
MessageBox.Show("Overlay to decompress #" + overlayNumber + " doesn't exist",
|
||||
MessageBox.Show($"File to decompress \"{overlayFilePath}\" doesn't exist",
|
||||
"Overlay not found", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return ERR_OVERLAY_NOTFOUND;
|
||||
}
|
||||
@@ -292,6 +290,9 @@ namespace DSPRE {
|
||||
decompress.WaitForExit();
|
||||
return decompress.ExitCode;
|
||||
}
|
||||
public static int DecompressOverlay(int overlayNumber, bool makeBackup = true) {
|
||||
return DecompressOverlay(GetOverlayPath(overlayNumber), makeBackup);
|
||||
}
|
||||
|
||||
public static Process CreateDecompressProcess(string path) {
|
||||
Process decompress = new Process();
|
||||
|
||||
Reference in New Issue
Block a user