mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ScnOpener): use IsPathEqualsToFileName.
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user