Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Nov 11, 2023
1 parent 766f3c2 commit 3f70db5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion castlevania-checksum-fixer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int ComputeHash(const u8* Bytes, u32 Length)
for (int i = 0; i < Length; i += 2)
{
num += ((int)Bytes[i] ^ (i & 255));
num2 += ((int)Bytes[i + 1] ^ (i + 1 & 255));
num2 += ((int)Bytes[i + 1] ^ ((i + 1) & 255));
}

return (num + num2);
Expand Down
Binary file added monsterhunter-decrypter/samples/MHP3RD.BIN.DEC
Binary file not shown.
Binary file added monsterhunter-decrypter/samples/MHP3RD.BIN.ENC
Binary file not shown.

0 comments on commit 3f70db5

Please sign in to comment.