(OvkOpener): check filename to reduce false positives.

This commit is contained in:
morkt 2016-04-23 20:15:32 +04:00
parent 8245941077
commit 37d70ca21d

View File

@ -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;