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.uGOS
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".det", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".det"))
|
||||
return null;
|
||||
var name_file = Path.ChangeExtension (file.Name, "nme");
|
||||
var index_file = Path.ChangeExtension (file.Name, "atm");
|
||||
|
||||
Reference in New Issue
Block a user