projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pfade in Mock so angepasst, dass sie mit dem Hauptcode zusammenpassen.
[hackover2013-badge-firmware.git]
/
mock
/
badge_main_loop.c
diff --git
a/mock/badge_main_loop.c
b/mock/badge_main_loop.c
index
9c7a59d
..
0f8b880
100644
(file)
--- a/
mock/badge_main_loop.c
+++ b/
mock/badge_main_loop.c
@@
-13,13
+13,13
@@
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.020486 seconds
and
4
git commands to generate.