This commit is contained in:
Kaphotics
2016-05-01 14:49:22 -07:00

View File

@@ -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;