From 84e77b54f65fa2e3d7d21e02de36efd1136f4537 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 13 Mar 2017 19:16:18 +0400 Subject: [PATCH] (QLIE): allow null values in KnownKeys. --- ArcFormats/Qlie/ArcQLIE.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Qlie/ArcQLIE.cs b/ArcFormats/Qlie/ArcQLIE.cs index acb95fd9..fa5ddea8 100644 --- a/ArcFormats/Qlie/ArcQLIE.cs +++ b/ArcFormats/Qlie/ArcQLIE.cs @@ -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)