diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-16 22:38:04 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-16 22:38:04 -0400 |
commit | a19507262602fa31f9f14a9e4f4e03e375bca111 (patch) | |
tree | 27e919aaaa7435918b090c64498891fd77096644 /source/main.c | |
parent | 07774bfa274462a74da04222712d5d096b1d14cb (diff) | |
download | gen3uploader-a19507262602fa31f9f14a9e4f4e03e375bca111.tar.gz gen3uploader-a19507262602fa31f9f14a9e4f4e03e375bca111.tar.bz2 gen3uploader-a19507262602fa31f9f14a9e4f4e03e375bca111.zip |
Debug output lists pokedex numbers for seen/caught
Diffstat (limited to 'source/main.c')
-rw-r--r-- | source/main.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/source/main.c b/source/main.c index a3b7525..81f30a3 100644 --- a/source/main.c +++ b/source/main.c | |||
@@ -183,23 +183,26 @@ void* extractor(void* userdata) | |||
183 | 183 | ||
184 | getMsgArr(pokedexSeen, 13); | 184 | getMsgArr(pokedexSeen, 13); |
185 | getMsgArr(pokedexCaught, 13); | 185 | getMsgArr(pokedexCaught, 13); |
186 | int numCaught = 0; | 186 | |
187 | int numSeen = 0; | 187 | printf("Saw: "); |
188 | for (int i=0; i<(13*32); i++) | 188 | for (int i=0; i<(13*32); i++) |
189 | { | 189 | { |
190 | if (pokedexCaught[i >> 5] >> (i & 31) & 1) | 190 | if (pokedexSeen[i >> 5] >> (i & 31) & 1) |
191 | { | 191 | { |
192 | //printf("Caught #%d\n", i); | 192 | printf("#%d, ", i+1); |
193 | numCaught++; | 193 | } |
194 | numSeen++; | 194 | } |
195 | } else if (pokedexSeen[i >> 5] >> (i & 31) & 1) | 195 | |
196 | printf("\nCaught: "); | ||
197 | for (int i=0; i<(13*32); i++) | ||
198 | { | ||
199 | if (pokedexCaught[i >> 5] >> (i & 31) & 1) | ||
196 | { | 200 | { |
197 | //printf("Saw #%d\n", i); | 201 | printf("#%d, ", i+1); |
198 | numSeen++; | ||
199 | } | 202 | } |
200 | } | 203 | } |
201 | 204 | ||
202 | printf("Caught: %d\nSeen: %d\n", numCaught, numSeen); | 205 | printf("\n"); |
203 | 206 | ||
204 | waitForButtons(PAD_BUTTON_START); | 207 | waitForButtons(PAD_BUTTON_START); |
205 | } | 208 | } |