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:
@@ -47,7 +47,7 @@ namespace GameRes.Formats.AdvSys
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".dat", StringComparison.InvariantCultureIgnoreCase)
|
||||
if (!file.Name.HasExtension (".dat")
|
||||
|| !Path.GetFileName (file.Name).StartsWith ("arc", StringComparison.InvariantCultureIgnoreCase))
|
||||
return null;
|
||||
long current_offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user