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:
@@ -65,7 +65,7 @@ namespace GameRes.Formats.Valkyria
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".odn", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".odn"))
|
||||
return null;
|
||||
var reader = new OdnIndexReader (file);
|
||||
var dir = reader.ReadIndex();
|
||||
|
||||
Reference in New Issue
Block a user