Skip extension finding

No need since the program manages internally.
This commit is contained in:
Kurt 2015-01-07 15:13:50 -08:00
parent 26fabab206
commit dd02478a6d

View File

@ -212,7 +212,7 @@ public static bool garcUnpack(string garcPath, string outPath, bool skipDecompre
compressed = true;
else
{
ext = Util.GuessExtension(br, "bin", bypassExt);
ext = "bin";
br.BaseStream.Seek(0, SeekOrigin.Begin);
}
@ -240,7 +240,7 @@ public static bool garcUnpack(string garcPath, string outPath, bool skipDecompre
catch (Exception e) { Util.Error("A compressed file could not be deleted.", fileout, e.ToString()); }
// Try to detect for extension now
ext = Util.GuessExtension(decout, bypassExt);
ext = "bin";
File.Move(decout, Path.Combine(outPath, "dec_" + filename + "." + ext));
}