mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(OvkOpener): check filename to reduce false positives.
This commit is contained in:
parent
8245941077
commit
37d70ca21d
@ -41,6 +41,8 @@ namespace GameRes.Formats.RealLive
|
|||||||
|
|
||||||
public override ArcFile TryOpen (ArcView file)
|
public override ArcFile TryOpen (ArcView file)
|
||||||
{
|
{
|
||||||
|
if (!file.Name.EndsWith (".ovk", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return null;
|
||||||
int count = file.View.ReadInt32 (0);
|
int count = file.View.ReadInt32 (0);
|
||||||
if (!IsSaneCount (count))
|
if (!IsSaneCount (count))
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user