Compare commits

...

4 Commits

Author SHA1 Message Date
Crsky
01fd4e91fb Merge pull request #186 from CBerJun/rj-crypt-encrypt-fix
Fix XP3 creation with RiddleCxCrypt
2026-04-19 00:46:08 +08:00
Crsky
65368f2c62 Merge pull request #185 from CBerJun/rj-key-fix
Fix decryption for Riddle Joker
2026-04-19 00:45:46 +08:00
CBerJun
22e5390958 fix: Encrypting with RiddleCxCrypt 2026-04-13 17:08:15 -04:00
CBerJun
6284a4ba25 fix: Crypt key for Riddle Joker 2026-04-13 16:46:35 -04:00
2 changed files with 6 additions and 1 deletions

View File

@@ -163,6 +163,11 @@ namespace GameRes.Formats.KiriKiri
}
public override void Decrypt (Xp3Entry entry, long offset, byte[] buffer, int pos, int count)
{
CxDecryptCore (entry, offset, buffer, pos, count);
}
protected void CxDecryptCore (Xp3Entry entry, long offset, byte[] buffer, int pos, int count)
{
uint key = entry.Hash;
uint base_offset = GetBaseOffset (key);
@@ -204,7 +209,7 @@ namespace GameRes.Formats.KiriKiri
public override void Encrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
{
Decrypt (entry, offset, values, pos, count);
CxDecryptCore (entry, offset, values, pos, count);
}
protected Tuple<uint, uint> ExecuteXCode (uint hash)

View File

Binary file not shown.