mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-21 19:35:03 +08:00
released v1.2.19
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user