(Xp3Opener): entry considered encrypted if cipher isn't "NoCrypt".

This commit is contained in:
morkt 2015-12-23 09:37:16 +04:00
parent 4df7576563
commit 0b89f83742

View File

@ -201,7 +201,7 @@ namespace GameRes.Formats.KiriKiri
entry.Cipher = crypt_algorithm.Value; entry.Cipher = crypt_algorithm.Value;
else else
entry.Cipher = NoCryptAlgorithm; entry.Cipher = NoCryptAlgorithm;
entry.IsEncrypted = entry.Cipher != NoCryptAlgorithm; entry.IsEncrypted = !(entry.Cipher is NoCrypt);
var name = new string (header.ReadChars (name_size)); var name = new string (header.ReadChars (name_size));
if (entry.Cipher.ObfuscatedIndex && ObfuscatedPathRe.IsMatch (name)) if (entry.Cipher.ObfuscatedIndex && ObfuscatedPathRe.IsMatch (name))