(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");
byte[] key = null;
if (!string.IsNullOrEmpty (title))
key = GetKeyData (title);
if (!string.IsNullOrEmpty (title) && KnownKeys.ContainsKey (title))
return KnownKeys[title];
if (null == key)
key = GuessKeyData (file.Name);
if (null == key)