mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(FormatCatalog.ReadString): removed misplaced big-endian treatment.
This commit is contained in:
parent
b19487246a
commit
16efe95597
@ -381,19 +381,9 @@ namespace GameRes
|
||||
{
|
||||
file.Position = 0;
|
||||
uint signature = (byte)file.ReadByte();
|
||||
if (BitConverter.IsLittleEndian)
|
||||
{
|
||||
signature |= (uint)file.ReadByte() << 8;
|
||||
signature |= (uint)file.ReadByte() << 16;
|
||||
signature |= (uint)file.ReadByte() << 24;
|
||||
}
|
||||
else
|
||||
{
|
||||
signature <<= 24;
|
||||
signature |= (uint)file.ReadByte() << 16;
|
||||
signature |= (uint)file.ReadByte() << 8;
|
||||
signature |= (byte)file.ReadByte();
|
||||
}
|
||||
return signature;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user