mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-05-10 22:21:05 -05:00
Created DecompressOverlay with string arg
This commit is contained in:
parent
559fa4b53d
commit
5431a35222
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user