Add notifications for decompression

Also added some sanity checks.
This commit is contained in:
Kurt
2015-11-08 21:59:14 -08:00
parent 6ee56c8306
commit c56ee95f4f

View File

@@ -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)
{