From 2e403172f554dea436e4c079f7103f32728a7945 Mon Sep 17 00:00:00 2001 From: Patrick Daleszynski Date: Sun, 3 Apr 2016 11:34:22 +0200 Subject: [PATCH] ExHeaderPath use DecryptedExHeader.bin file --- pk3DS/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index 5318c4d..af2b8ef 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -354,7 +354,7 @@ private bool checkIfExHeader(string path) ExHeaderPath = null; // Input folder path should contain the ExHeader. string[] files = Directory.GetFiles(path); - foreach (string fp in from s in files let f = new FileInfo(s) where f.Name.ToLower().StartsWith("exh") && f.Length == 0x800 select s) + foreach (string fp in from s in files let f = new FileInfo(s) where (f.Name.ToLower().StartsWith("exh") || f.Name.ToLower().StartsWith("decryptedexh")) && f.Length == 0x800 select s) ExHeaderPath = fp; return ExHeaderPath != null;