mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 20:34:13 +08:00
fixed BinaryStreams.
This commit is contained in:
parent
67a7ced922
commit
61a1253980
@ -131,12 +131,9 @@ namespace GameRes
|
|||||||
if (!m_source.CanSeek)
|
if (!m_source.CanSeek)
|
||||||
{
|
{
|
||||||
m_buffer_end = m_source.Read (m_buffer, 0, 4);
|
m_buffer_end = m_source.Read (m_buffer, 0, 4);
|
||||||
if (4 == m_buffer_end)
|
|
||||||
{
|
|
||||||
uint signature = LittleEndian.ToUInt32 (m_buffer, 0);
|
uint signature = LittleEndian.ToUInt32 (m_buffer, 0);
|
||||||
m_signature = new Lazy<uint> (() => signature);
|
m_signature = new Lazy<uint> (() => signature);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_signature = new Lazy<uint> (ReadSignature);
|
m_signature = new Lazy<uint> (ReadSignature);
|
||||||
@ -516,7 +513,7 @@ namespace GameRes
|
|||||||
|
|
||||||
public sbyte ReadInt8 ()
|
public sbyte ReadInt8 ()
|
||||||
{
|
{
|
||||||
return (sbyte)ReadInt8();
|
return (sbyte)ReadUInt8();
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte ReadUInt8 ()
|
public byte ReadUInt8 ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user