public void Read(OsiReader reader) { reader.ReadByte(); Version = reader.ReadString(); MajorVersion = reader.ReadByte(); MinorVersion = reader.ReadByte(); BigEndian = reader.ReadBoolean(); Unused = reader.ReadByte(); if (Ver >= OsiVersion.VerAddVersionString) { reader.ReadBytes(0x80); // Version string buffer } if (Ver >= OsiVersion.VerAddDebugFlags) { DebugFlags = reader.ReadUInt32(); } else { DebugFlags = 0; } }
public void Read(OsiReader reader) { reader.ReadByte(); Version = reader.ReadString(); MajorVersion = reader.ReadByte(); MinorVersion = reader.ReadByte(); BigEndian = reader.ReadBoolean(); Unused = reader.ReadByte(); if (MajorVersion > 1 || (MajorVersion == 1 && MinorVersion >= 2)) { reader.ReadBytes(0x80); // Version string buffer } if (MajorVersion > 1 || (MajorVersion == 1 && MinorVersion >= 3)) { DebugFlags = reader.ReadUInt32(); } else { DebugFlags = 0; } }