idz: Add implicit version field to requests

This commit is contained in:
Tau
2021-02-03 23:43:38 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent eb276128c2
commit 198256e6ff
33 changed files with 34 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ function saveTimeAttack(buf: Buffer): SaveTimeAttackRequest {
return {
type: "save_time_attack_req",
aimeId: buf.readUInt32LE(0x0004) as AimeId,
version: 1,
dayNight: buf.readUInt8(0x0054) & 1,
payload: {
routeNo: (buf.readUInt8(0x0054) >> 1) as RouteNo,