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:
@@ -41,7 +41,7 @@ namespace GameRes.Formats.Silky
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".arc", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".arc"))
|
||||
return null;
|
||||
uint index_size = file.View.ReadUInt32 (0);
|
||||
if (index_size < 10 || index_size >= file.MaxOffset-4)
|
||||
|
||||
Reference in New Issue
Block a user