projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of gitlab:wintermute/hackover2013-badge-firmware
[hackover2013-badge-firmware.git]
/
badge
/
ui
/
browser.c
diff --git
a/badge/ui/browser.c
b/badge/ui/browser.c
index
1f5fe24
..
493ce0f
100644
(file)
--- a/
badge/ui/browser.c
+++ b/
badge/ui/browser.c
@@
-71,7
+71,7
@@
static uint8_t badge_browse_pick_filename_from_fd(char *buf, size_t *first_visib
fnames[i] = p;
}
fnames[i] = p;
}
- strcpy(menu_buf[i], "
exit
");
+ strcpy(menu_buf[i], "
Zurück
");
menu_index[i] = menu_buf[i];
size_t choice = badge_menu(menu_index, i + 1, first_visible, *selected);
menu_index[i] = menu_buf[i];
size_t choice = badge_menu(menu_index, i + 1, first_visible, *selected);
@@
-107,12
+107,11
@@
void badge_browse_textfile(char const *fname) {
}
}
}
}
-void badge_browse_textfiles(char const *menufile) {
+void badge_browse_textfiles(char const *menufile
, size_t *selected
) {
char buf[FNAME_MAX + 1];
size_t first_visible = 0;
char buf[FNAME_MAX + 1];
size_t first_visible = 0;
- size_t selected = 0;
- while(0 == badge_pick_filename(buf, menufile, &first_visible,
&
selected)) {
+ while(0 == badge_pick_filename(buf, menufile, &first_visible, selected)) {
badge_browse_textfile(buf);
}
}
badge_browse_textfile(buf);
}
}
This page took
0.028814 seconds
and
4
git commands to generate.