wip clean up profile locks

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 27f42c5b65
commit 47451ca519
24 changed files with 133 additions and 125 deletions
+13
View File
@@ -0,0 +1,13 @@
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"),
};
}