mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(ScnOpener): use IsPathEqualsToFileName.
This commit is contained in:
parent
d6c2cd097e
commit
1d87a66ef2
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user