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