(BONK): Fix LookupIndex function not handling filename case.

This commit is contained in:
Crsky
2025-01-21 16:06:33 +08:00
parent 0ff2dac3c8
commit ebb8084a00

View File

@@ -76,7 +76,7 @@ namespace GameRes.Formats.Bonk
IEnumerable<IndexRecord> LookupIndex (ArcView file)
{
var arc_name = Path.GetFileName (file.Name);
var arc_name = Path.GetFileName (file.Name).ToLower();
if (!arc_name.StartsWith ("data_") || !arc_name.EndsWith (".pack"))
return null;
ArchiveRecord arc_record;