mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Compare commits
5 Commits
2f752b84ac
...
GARbro-Mod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fd6de76e2 | ||
|
|
5f3d3c1e99 | ||
|
|
2e68901a33 | ||
|
|
72ad693f2d | ||
|
|
caa46020a3 |
@@ -563,10 +563,11 @@ namespace GameRes.Formats.DxLib
|
|||||||
|
|
||||||
public override int ReadByte ()
|
public override int ReadByte ()
|
||||||
{
|
{
|
||||||
|
long pos = Position;
|
||||||
int b = BaseStream.ReadByte();
|
int b = BaseStream.ReadByte();
|
||||||
if (m_key.Length !=0)
|
if (m_key.Length !=0)
|
||||||
{
|
{
|
||||||
int key_pos = (int)((m_base_pos + Position) % m_key.Length);
|
int key_pos = (int)((m_base_pos + pos) % m_key.Length);
|
||||||
if (-1 != b)
|
if (-1 != b)
|
||||||
{
|
{
|
||||||
b ^= m_key[key_pos];
|
b ^= m_key[key_pos];
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user