(YPF): lookup game in parent directory, too.

This commit is contained in:
morkt 2017-12-01 21:57:11 +04:00
parent 92169e0408
commit a81055f74d

View File

@ -178,6 +178,8 @@ namespace GameRes.Formats.YuRis
YpfScheme QueryEncryptionScheme (string arc_name, uint version)
{
var title = FormatCatalog.Instance.LookupGame (arc_name);
if (string.IsNullOrEmpty (title))
title = FormatCatalog.Instance.LookupGame (arc_name, @"..\*.exe");
YpfScheme scheme;
if (!string.IsNullOrEmpty (title) && KnownSchemes.TryGetValue (title, out scheme))
return scheme;