mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 05:46:47 -05:00
Add notifications for decompression
Also added some sanity checks.
This commit is contained in:
@@ -43,9 +43,10 @@ private void tabMain_DragDrop(object sender, DragEventArgs e)
|
||||
saveARC(path);
|
||||
else try {
|
||||
CTR.LZSS.Decompress(path, Path.Combine(Path.GetDirectoryName(path), "dec_" + Path.GetFileName(path)));
|
||||
} catch { try {
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
} catch { try { if (threads < 1)
|
||||
new Thread(() => { threads++; new CTR.BLZCoder(new[] { "-d", path }, pBar1); threads--; Util.Alert("Decompressed!"); }).Start();
|
||||
} catch { Util.Error("Unable to process file."); } }
|
||||
} catch { Util.Error("Unable to process file."); threads = 0; } }
|
||||
}
|
||||
private void dropHover(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user