From 433df9a40045288ab70ab4f317bdd5e4e53ecb1b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 19:16:47 -0400 Subject: Extractor now gets box names --- gba/source/main.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gba') diff --git a/gba/source/main.c b/gba/source/main.c index 375adb8..30f11d6 100644 --- a/gba/source/main.c +++ b/gba/source/main.c @@ -214,6 +214,26 @@ int main(void) for (int bi=0; bi<14; bi++) { + u8* boxName = pc->boxNames[bi]; + + u32 bn1 = + (boxName[0] << 24) + | (boxName[1] << 16) + | (boxName[2] << 8) + | (boxName[3]); + + u32 bn2 = + (boxName[4] << 24) + | (boxName[5] << 16) + | (boxName[6] << 8) + | (boxName[7]); + + sendU32(bn1); + waitForAck(); + + sendU32(bn2); + waitForAck(); + struct BoxPokemon* box = pc->boxes[bi]; for (int si=0; si<30; si++) -- cgit 1.4.1