Save "last mileage reward" field

Not entirely clear what it does but it prevents a music unlock
notification notification from popping at the start of every credit
whether or not the underlying music unlock flag is already set.
This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent a4a6550abb
commit 141cb4b90c
4 changed files with 16 additions and 1 deletions
+1
View File
@@ -57,6 +57,7 @@ export function loadProfile2(res: LoadProfileResponse2) {
buf.writeUInt16LE(0x0065, 0x0000);
buf.writeUInt8(res.unlocks.cup, 0x00b4);
buf.writeUInt16LE(res.unlocks.gauges, 0x00b8);
buf.writeUInt32LE(res.unlocks.lastMileageReward, 0x01e8);
buf.writeUInt16LE(res.unlocks.music, 0x01ec);
mission(res.missions.team).copy(buf, 0x038a);
buf.writeUInt16LE(0xffff, 0x0388); // [1]