about summary refs log tree commit diff stats
path: root/gba/source/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gba/source/main.c')
-rw-r--r--gba/source/main.c20
1 files changed, 20 insertions, 0 deletions
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)
214 214
215 for (int bi=0; bi<14; bi++) 215 for (int bi=0; bi<14; bi++)
216 { 216 {
217 u8* boxName = pc->boxNames[bi];
218
219 u32 bn1 =
220 (boxName[0] << 24)
221 | (boxName[1] << 16)
222 | (boxName[2] << 8)
223 | (boxName[3]);
224
225 u32 bn2 =
226 (boxName[4] << 24)
227 | (boxName[5] << 16)
228 | (boxName[6] << 8)
229 | (boxName[7]);
230
231 sendU32(bn1);
232 waitForAck();
233
234 sendU32(bn2);
235 waitForAck();
236
217 struct BoxPokemon* box = pc->boxes[bi]; 237 struct BoxPokemon* box = pc->boxes[bi];
218 238
219 for (int si=0; si<30; si++) 239 for (int si=0; si<30; si++)