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:
@@ -44,7 +44,7 @@ namespace GameRes.Formats.GameSystem
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".CHR", StringComparison.InvariantCultureIgnoreCase)
|
||||
if (!file.Name.HasExtension (".CHR")
|
||||
|| file.View.ReadUInt32 (0) != file.MaxOffset)
|
||||
return null;
|
||||
using (var input = file.CreateStream())
|
||||
|
||||
Reference in New Issue
Block a user