(ScnOpener): use IsPathEqualsToFileName.

This commit is contained in:
morkt 2018-05-07 00:22:32 +04:00
parent d6c2cd097e
commit 1d87a66ef2

View File

@ -47,8 +47,7 @@ namespace GameRes.Formats.Seraphim
public override ArcFile TryOpen (ArcView file) public override ArcFile TryOpen (ArcView file)
{ {
string name = Path.GetFileName (file.Name); if (!VFS.IsPathEqualsToFileName (file.Name, "SCNPAC.DAT"))
if (!name.Equals ("SCNPAC.DAT", StringComparison.InvariantCultureIgnoreCase))
return null; return null;
int count = file.View.ReadInt32 (0); int count = file.View.ReadInt32 (0);
if (!IsSaneCount (count)) if (!IsSaneCount (count))