diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-24 19:16:47 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-24 19:16:47 -0400 |
commit | 433df9a40045288ab70ab4f317bdd5e4e53ecb1b (patch) | |
tree | b8145f33f92fe0c1b901be65a63b80db9b297fa2 /gba/source/main.c | |
parent | b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3 (diff) | |
download | gen3uploader-433df9a40045288ab70ab4f317bdd5e4e53ecb1b.tar.gz gen3uploader-433df9a40045288ab70ab4f317bdd5e4e53ecb1b.tar.bz2 gen3uploader-433df9a40045288ab70ab4f317bdd5e4e53ecb1b.zip |
Extractor now gets box names
Diffstat (limited to 'gba/source/main.c')
-rw-r--r-- | gba/source/main.c | 20 |
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++) |