From dd02478a6db3d7fbceced6a0913f69be96e01366 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 7 Jan 2015 15:13:50 -0800 Subject: [PATCH] Skip extension finding No need since the program manages internally. --- pk3DS/GARCTool.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pk3DS/GARCTool.cs b/pk3DS/GARCTool.cs index 7f55342..30d2962 100644 --- a/pk3DS/GARCTool.cs +++ b/pk3DS/GARCTool.cs @@ -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)); }