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:
@@ -42,7 +42,7 @@ namespace GameRes.Formats.BlackCyc
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".gpk", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".gpk"))
|
||||
return null;
|
||||
var gtb_name = Path.ChangeExtension (file.Name, "gtb");
|
||||
if (!VFS.FileExists (gtb_name))
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace GameRes.Formats.BlackCyc
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".vpk", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".vpk"))
|
||||
return null;
|
||||
var vtb_name = Path.ChangeExtension (file.Name, "vtb");
|
||||
if (!VFS.FileExists (vtb_name))
|
||||
|
||||
Reference in New Issue
Block a user