(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)
{
string name = Path.GetFileName (file.Name);
if (!name.Equals ("SCNPAC.DAT", StringComparison.InvariantCultureIgnoreCase))
if (!VFS.IsPathEqualsToFileName (file.Name, "SCNPAC.DAT"))
return null;
int count = file.View.ReadInt32 (0);
if (!IsSaneCount (count))