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:
@@ -49,7 +49,7 @@ namespace GameRes.Formats.Ags
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".ani", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".ani"))
|
||||
return null;
|
||||
uint first_offset = file.View.ReadUInt32 (0);
|
||||
if (first_offset < 4 || file.MaxOffset > int.MaxValue || first_offset >= file.MaxOffset || 0 != (first_offset & 3))
|
||||
|
||||
Reference in New Issue
Block a user