released v1.2.19

This commit is contained in:
morkt
2016-08-12 04:42:45 +04:00
parent e6a09b2883
commit b3d74fb17c
8 changed files with 183 additions and 14 deletions

View File

@@ -178,7 +178,6 @@ namespace GameRes.Formats.NScripter
protected override void DecryptBlock ()
{
int block_count = m_current_block_length / BlockSize;
var temp = new byte[32];
var hash = new byte[16];
for (int src = 0; src < m_current_block_length; src += BlockSize)
@@ -219,7 +218,7 @@ namespace GameRes.Formats.NScripter
Buffer.BlockCopy (temp, 16, m_current_block, src, 16);
for (int j = 0; j < 16; ++j)
{
m_current_block[src + 16 + j] = (byte)(hash[j] ^ temp[j]);
m_current_block[src2 + j] = (byte)(hash[j] ^ temp[j]);
}
}
}