From 615bb9b2d7aa2073fd6cc4179897ac78035988d1 Mon Sep 17 00:00:00 2001 From: Tau Date: Thu, 4 Apr 2019 14:09:23 -0400 Subject: [PATCH] wip map settings load --- src/idz/encoder/loadProfile2.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/idz/encoder/loadProfile2.ts b/src/idz/encoder/loadProfile2.ts index efbb22f..52e8370 100644 --- a/src/idz/encoder/loadProfile2.ts +++ b/src/idz/encoder/loadProfile2.ts @@ -5,6 +5,9 @@ import { LoadProfileResponse2 } from "../response/loadProfile2"; export function loadProfile2(res: LoadProfileResponse2) { const buf = Buffer.alloc(0x0d30); + buf.writeUInt16LE(12, 0x03c8); // BGM + buf.writeUInt32LE(0x3548, 0x03d8); // Settings pack (default: max vol, force 4, corner on) + buf.writeInt16LE(0x0065, 0x0000); buf.writeInt32LE(res.profileId, 4 + 0x3b4); buf.writeInt16LE(res.lv, 4 + 0x03c8);