mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Compare commits
4 Commits
71a938273f
...
01fd4e91fb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01fd4e91fb | ||
|
|
65368f2c62 | ||
|
|
22e5390958 | ||
|
|
6284a4ba25 |
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user