Fix possible memory overuse

Mini detection would read all of the file in; no please no.

Don't check for mini if above 10MB.
This commit is contained in:
Kurt
2015-11-16 21:48:28 -08:00
parent efd4f12e81
commit 39ca38849e

View File

@@ -91,7 +91,7 @@ private void openARC(string path, bool recursing = false)
// Determine if it is a DARC or a Mini
// Check if Mini first
string fx = CTR.mini.getIsMini(path);
string fx = fi.Length > 10 * (1<<20) ? null : CTR.mini.getIsMini(path); // no mini is above 10MB
if (fx != null) // Is Mini Packed File
{
newFolder = folderPath + "_" + fx;