diff options
Diffstat (limited to 'source')
-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 | } |