public void Load(Stream stream) { byte[] buffer = new byte[12]; stream.Read(buffer, 0, 12); fileID = Encoding.ASCII.GetString(buffer); majorVersion = (byte)stream.ReadByte(); minorVersion = (byte)stream.ReadByte(); exeTime = OblivionUtil.LoadSystemTime(stream); }
public void Load(Stream stream) { headerVersion = OblivionUtil.LoadBinaryCompatible <uint>(stream); saveHeaderSize = OblivionUtil.LoadBinaryCompatible <uint>(stream); saveNum = OblivionUtil.LoadBinaryCompatible <uint>(stream); pcName = OblivionUtil.LoadBZString(stream); pcLevel = OblivionUtil.LoadBinaryCompatible <ushort>(stream); pcLocation = OblivionUtil.LoadBZString(stream); gameDays = OblivionUtil.LoadBinaryCompatible <float>(stream); gameTicks = OblivionUtil.LoadBinaryCompatible <uint>(stream); gameTime = OblivionUtil.LoadSystemTime(stream); screenshot = OblivionUtil.LoadScreenshot(stream); }