From a19507262602fa31f9f14a9e4f4e03e375bca111 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 16 Jul 2017 22:38:04 -0400 Subject: Debug output lists pokedex numbers for seen/caught --- source/main.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'source') 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) getMsgArr(pokedexSeen, 13); getMsgArr(pokedexCaught, 13); - int numCaught = 0; - int numSeen = 0; + + printf("Saw: "); for (int i=0; i<(13*32); i++) { - if (pokedexCaught[i >> 5] >> (i & 31) & 1) + if (pokedexSeen[i >> 5] >> (i & 31) & 1) { - //printf("Caught #%d\n", i); - numCaught++; - numSeen++; - } else if (pokedexSeen[i >> 5] >> (i & 31) & 1) + printf("#%d, ", i+1); + } + } + + printf("\nCaught: "); + for (int i=0; i<(13*32); i++) + { + if (pokedexCaught[i >> 5] >> (i & 31) & 1) { - //printf("Saw #%d\n", i); - numSeen++; + printf("#%d, ", i+1); } } - printf("Caught: %d\nSeen: %d\n", numCaught, numSeen); + printf("\n"); waitForButtons(PAD_BUTTON_START); } -- cgit 1.4.1