(QLIE): allow null values in KnownKeys.

This commit is contained in:
morkt 2017-03-13 19:16:18 +04:00
parent e50d3af3d9
commit 84e77b54f6

View File

@ -292,8 +292,8 @@ namespace GameRes.Formats.Qlie
{ {
var title = FormatCatalog.Instance.LookupGame (file.Name, @"..\*.exe"); var title = FormatCatalog.Instance.LookupGame (file.Name, @"..\*.exe");
byte[] key = null; byte[] key = null;
if (!string.IsNullOrEmpty (title)) if (!string.IsNullOrEmpty (title) && KnownKeys.ContainsKey (title))
key = GetKeyData (title); return KnownKeys[title];
if (null == key) if (null == key)
key = GuessKeyData (file.Name); key = GuessKeyData (file.Name);
if (null == key) if (null == key)