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:
@@ -39,7 +39,7 @@ namespace GameRes.Formats.GameSystem
|
||||
|
||||
public override ImageMetaData ReadMetaData (IBinaryStream file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".alp", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".alp"))
|
||||
return null;
|
||||
var header = file.ReadHeader (8);
|
||||
uint width = header.ToUInt32 (0);
|
||||
|
||||
Reference in New Issue
Block a user