mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use HasExtension method instead of string.EndsWith.
This commit is contained in:
@@ -78,7 +78,7 @@ namespace GameRes.Formats.Banana // namespace is arbitrary, actual format source
|
||||
index_offset += 8;
|
||||
if (entry.Offset < index_offset || !entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
if (name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (name.HasExtension (".scr"))
|
||||
entry.IsPacked = true;
|
||||
dir.Add (entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user