From 23ea8710c080a90efae0669ef0d3e266c0b536af Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 14 Jan 2023 23:14:50 -0800 Subject: [PATCH] Read PLJv2 track ID and year --- BurnOutSharp.Builders/PlayJ.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BurnOutSharp.Builders/PlayJ.cs b/BurnOutSharp.Builders/PlayJ.cs index ac681ae4..28b3a6e9 100644 --- a/BurnOutSharp.Builders/PlayJ.cs +++ b/BurnOutSharp.Builders/PlayJ.cs @@ -265,7 +265,13 @@ namespace BurnOutSharp.Builders else { // Discard the following pieces until we can figure out what they are - _ = data.ReadBytes(0x5C); + _ = data.ReadBytes(0x4C); + + entryHeader.TrackID = data.ReadUInt32(); + entryHeader.Year = data.ReadUInt32(); // Unconfirmed + + // Discard the following pieces until we can figure out what they are + _ = data.ReadBytes(0x08); } entryHeader.TrackLength = data.ReadUInt16();