From a81055f74dfaaa2219a5485222c51e09aa74309a Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 1 Dec 2017 21:57:11 +0400 Subject: [PATCH] (YPF): lookup game in parent directory, too. --- ArcFormats/YuRis/ArcYPF.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/YuRis/ArcYPF.cs b/ArcFormats/YuRis/ArcYPF.cs index 781fc693..ffd4ade9 100644 --- a/ArcFormats/YuRis/ArcYPF.cs +++ b/ArcFormats/YuRis/ArcYPF.cs @@ -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;