X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/875a5450a1974299bbfad500c4b0d5eedb60fc7c..10e466530d58c52705b957688f3c62f3b60f2bdf:/mock/badge_main_loop.c diff --git a/mock/badge_main_loop.c b/mock/badge_main_loop.c index 9c7a59d..0f8b880 100644 --- a/mock/badge_main_loop.c +++ b/mock/badge_main_loop.c @@ -13,13 +13,13 @@ void badge_main_loop(void) { for(;;) { - FILE *fd = fopen("jumpnrun/levels.txt", "r"); + FILE *fd = fopen("../badge/jumpnrun/levels.txt", "r"); char buf[12]; while(fgets(buf, sizeof(buf), fd)) { buf[strlen(buf) - 1] = '\0'; - char lvname[30]; - sprintf(lvname, "jumpnrun/%s.lvl", buf); + char lvname[256]; + sprintf(lvname, "../badge/jumpnrun/%s.lvl", buf); while(jumpnrun_play(lvname) != JUMPNRUN_WON) ; }