(FormatCatalog.ReadString): removed misplaced big-endian treatment.

This commit is contained in:
morkt 2014-08-02 09:04:31 +04:00
parent b19487246a
commit 16efe95597

View File

@ -381,19 +381,9 @@ namespace GameRes
{ {
file.Position = 0; file.Position = 0;
uint signature = (byte)file.ReadByte(); uint signature = (byte)file.ReadByte();
if (BitConverter.IsLittleEndian) signature |= (uint)file.ReadByte() << 8;
{ signature |= (uint)file.ReadByte() << 16;
signature |= (uint)file.ReadByte() << 8; signature |= (uint)file.ReadByte() << 24;
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; return signature;
} }
} }