From 41bcdc5c4e78168c5ce06306f26bd11fef1ee9ff Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 12 Apr 2019 20:44:51 -0400 Subject: [PATCH] Remove "Model Record" emblem --- src/idz/encoder/loadProfile2.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/idz/encoder/loadProfile2.ts b/src/idz/encoder/loadProfile2.ts index deb8ba8..f9f2382 100644 --- a/src/idz/encoder/loadProfile2.ts +++ b/src/idz/encoder/loadProfile2.ts @@ -78,6 +78,7 @@ export function loadProfile2(res: LoadProfileResponse2) { buf.writeUInt16LE(res.unlocks.gauges, 0x00b8); buf.writeUInt16LE(res.unlocks.music, 0x01ec); mission(res.missions.team).copy(buf, 0x038a); + buf.writeUInt16LE(0xffff, 0x0388); // [1] buf.writeUInt32LE(res.profileId, 0x03b8); buf.writeUInt16LE(res.settings.music, 0x03c8); buf.writeUInt16LE(res.lv, 0x03cc); @@ -96,5 +97,8 @@ export function loadProfile2(res: LoadProfileResponse2) { buf.writeUInt32LE(res.teamId || 0xffffffff, 0x07e0); car(res.car).copy(buf, 0x0c5c); + // [1] Currently unknown, but if this field is zero then the player will have + // a "model record" emblem in their profile card. + return buf; }