mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(ByteStringEncryptedStream): redunant conditional.
This commit is contained in:
parent
a2c9e3f79b
commit
7f3d2dfdfb
@ -119,13 +119,10 @@ namespace GameRes.Formats
|
||||
{
|
||||
int start_pos = (int)((m_base_pos + BaseStream.Position) % m_key.Length);
|
||||
int read = BaseStream.Read (buffer, offset, count);
|
||||
if (read > 0)
|
||||
{
|
||||
for (int i = 0; i < read; ++i)
|
||||
{
|
||||
buffer[offset+i] ^= m_key[(start_pos + i) % m_key.Length];
|
||||
}
|
||||
}
|
||||
return read;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user