add course play counter tracking

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 9eb3d992c4
commit 0d8b55bfad
8 changed files with 27 additions and 7 deletions
+7
View File
@@ -28,6 +28,12 @@ export function saveProfile(buf: Buffer): SaveProfileRequest {
storyRows.push(row);
}
const coursePlays = new Array();
for (let i = 0x0000; i < 0x0020; i += 2) {
coursePlays.push(buf.readUInt16LE(0x04c0 + i));
}
return {
type: "save_profile_req",
profileId: buf.readUInt32LE(0x0004) as Id<Profile>,
@@ -38,6 +44,7 @@ export function saveProfile(buf: Buffer): SaveProfileRequest {
title: buf.readUInt16LE(0x0040) as TitleCode,
titles: bitmap(buf.slice(0x0042, 0x00f6)) as TitleCode[],
background: buf.readUInt8(0x0750) as BackgroundCode,
coursePlays,
car: car(buf.slice(0x0834, 0x0894)),
story: {
x: buf.readUInt16LE(0x06fc),