mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(YPF): lookup game in parent directory, too.
This commit is contained in:
parent
92169e0408
commit
a81055f74d
@ -178,6 +178,8 @@ namespace GameRes.Formats.YuRis
|
|||||||
YpfScheme QueryEncryptionScheme (string arc_name, uint version)
|
YpfScheme QueryEncryptionScheme (string arc_name, uint version)
|
||||||
{
|
{
|
||||||
var title = FormatCatalog.Instance.LookupGame (arc_name);
|
var title = FormatCatalog.Instance.LookupGame (arc_name);
|
||||||
|
if (string.IsNullOrEmpty (title))
|
||||||
|
title = FormatCatalog.Instance.LookupGame (arc_name, @"..\*.exe");
|
||||||
YpfScheme scheme;
|
YpfScheme scheme;
|
||||||
if (!string.IsNullOrEmpty (title) && KnownSchemes.TryGetValue (title, out scheme))
|
if (!string.IsNullOrEmpty (title) && KnownSchemes.TryGetValue (title, out scheme))
|
||||||
return scheme;
|
return scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user