mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(CxEncryption.Init): control block expected to be on a dword boundary.
This commit is contained in:
parent
29d9a262f3
commit
db294724dc
@ -110,7 +110,7 @@ namespace GameRes.Formats.KiriKiri
|
||||
unsafe
|
||||
{
|
||||
byte* begin = view.GetPointer (0);
|
||||
byte* end = begin + (((uint)tpm.MaxOffset - 0x1000u) & ~0xFu);
|
||||
byte* end = begin + (((uint)tpm.MaxOffset - 0x1000u) & ~0x3u);
|
||||
try {
|
||||
while (begin < end)
|
||||
{
|
||||
@ -128,7 +128,7 @@ namespace GameRes.Formats.KiriKiri
|
||||
ControlBlock[i] = ~src[i];
|
||||
return;
|
||||
}
|
||||
begin += 0x10; // control block expected to be on a paragraph boundary
|
||||
begin += 4; // control block expected to be on a dword boundary
|
||||
}
|
||||
throw new InvalidEncryptionScheme ("No control block found inside TPM plugin");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user