(FC01): look for accompanying *.sb files in current directiry, too.

This commit is contained in:
morkt
2018-07-25 10:02:28 +04:00
parent 342fcad9b5
commit cb90bc81b6

View File

@@ -166,7 +166,8 @@ namespace GameRes.Formats.FC01
protected IDictionary<string, byte[]> QueryScheme (ArcView file) protected IDictionary<string, byte[]> QueryScheme (ArcView file)
{ {
var title = FormatCatalog.Instance.LookupGame (file.Name, @"..\*.sb"); var title = FormatCatalog.Instance.LookupGame (file.Name, "*.sb")
?? FormatCatalog.Instance.LookupGame (file.Name, @"..\*.sb");
if (string.IsNullOrEmpty (title) || !KnownSchemes.ContainsKey (title)) if (string.IsNullOrEmpty (title) || !KnownSchemes.ContainsKey (title))
return null; return null;
return KnownSchemes[title]; return KnownSchemes[title];