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.BlueGale
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".snn", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".snn"))
|
||||
return null;
|
||||
var inx_name = Path.ChangeExtension (file.Name, "Inx");
|
||||
if (!VFS.FileExists (inx_name))
|
||||
|
||||
Reference in New Issue
Block a user