Files
djhackersdev_minime/src/idz/decoder/unlockProfile.ts
T
Tau c2b0bcabc4 idz: Remove profile ext id
Turns out (while researching team creation) the profile ext id
is just the aime id. After creating a team a profile discovery
request is immediately issued with the "profile id" in the field
that holds the aime id during initial profile load.
2019-11-06 17:28:30 -05:00

14 lines
414 B
TypeScript

import { RequestCode } from "./_defs";
import { UnlockProfileRequest } from "../request/unlockProfile";
unlockProfile.msgCode = 0x006f as RequestCode;
unlockProfile.msgLen = 0x0020;
export function unlockProfile(buf: Buffer): UnlockProfileRequest {
return {
type: "unlock_profile_req",
aimeId: buf.readUInt32LE(0x0004),
pcbId: buf.slice(0x0008, buf.indexOf("\0", 0x0008)).toString("ascii"),
};
}