Usage bugfixes

This commit is contained in:
Kurt
2015-05-09 21:11:15 -07:00
parent 717abee946
commit 97dddd74ea

View File

@@ -50,6 +50,7 @@ private void dropLeave(object sender, EventArgs e)
private void openIMG(string path)
{
var img = png2bclim.makeBMP(path, CHK_PNG.Checked);
if (img == null) return;
PB_BCLIM.Size = new Size(img.Width + 2, img.Height + 2);
PB_BCLIM.BackgroundImage = img;
}
@@ -59,7 +60,7 @@ private void openARC(string path, bool recursing = false)
{
// Pre-check file length to see if it is at least valid.
FileInfo fi = new FileInfo(path);
if (fi.Length > 900000) { Util.Error("File is too big!"); return; }
if (fi.Length > 50000000) { Util.Error("File is too big!"); return; }
string folderPath = Path.Combine(Path.GetDirectoryName(path), Path.GetFileNameWithoutExtension(path));
// Determine if it is a DARC or a Mini