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:
@@ -79,8 +79,7 @@ namespace GameRes.Formats.Ffa
|
||||
var input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
if (entry.Size <= 8)
|
||||
return input;
|
||||
if (!entry.Name.EndsWith (".so4", StringComparison.InvariantCultureIgnoreCase) &&
|
||||
!entry.Name.EndsWith (".so5", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!entry.Name.HasAnyOfExtensions ("so4", "so5"))
|
||||
return input;
|
||||
int packed = input.ReadInt32();
|
||||
int unpacked = input.ReadInt32();
|
||||
|
||||
Reference in New Issue
Block a user