mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ByteStringEncryptedStream): redunant conditional.
This commit is contained in:
@@ -119,12 +119,9 @@ namespace GameRes.Formats
|
|||||||
{
|
{
|
||||||
int start_pos = (int)((m_base_pos + BaseStream.Position) % m_key.Length);
|
int start_pos = (int)((m_base_pos + BaseStream.Position) % m_key.Length);
|
||||||
int read = BaseStream.Read (buffer, offset, count);
|
int read = BaseStream.Read (buffer, offset, count);
|
||||||
if (read > 0)
|
for (int i = 0; i < read; ++i)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < read; ++i)
|
buffer[offset+i] ^= m_key[(start_pos + i) % m_key.Length];
|
||||||
{
|
|
||||||
buffer[offset+i] ^= m_key[(start_pos + i) % m_key.Length];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return read;
|
return read;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user