ambros neuer Vogel, wolfpros Level. Den wir wohl besser als secret level
[hackover2013-badge-firmware.git] / mock / badge_main_loop.c
index 9c7a59d..0f8b880 100644 (file)
 void badge_main_loop(void) {
 
   for(;;) {
 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 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)
         ;
     }
       while(jumpnrun_play(lvname) != JUMPNRUN_WON)
         ;
     }
This page took 0.029408 seconds and 4 git commands to generate.