aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-menu-about.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-20 23:37:05 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-20 23:37:05 +0100
commitc9638ff9ac818ae744d5d66885f431f5b4e2ba93 (patch)
tree7dfe762be85441c3d5fb48d15c308464af03f2b8 /com32/hdt/hdt-menu-about.c
parent01cbf8b2579a38902df7b64f182802788bd2de36 (diff)
downloadsyslinux-c9638ff9ac818ae744d5d66885f431f5b4e2ba93.tar.gz
syslinux-c9638ff9ac818ae744d5d66885f431f5b4e2ba93.tar.xz
syslinux-c9638ff9ac818ae744d5d66885f431f5b4e2ba93.zip
hdt: Adding contributors
Impact: A new cli command : hdt> show hdt Bump to 0.2.5 Adding contributor's list
Diffstat (limited to 'com32/hdt/hdt-menu-about.c')
-rw-r--r--com32/hdt/hdt-menu-about.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/com32/hdt/hdt-menu-about.c b/com32/hdt/hdt-menu-about.c
index ad3a820e..a5c1b0e6 100644
--- a/com32/hdt/hdt-menu-about.c
+++ b/com32/hdt/hdt-menu-about.c
@@ -39,25 +39,33 @@ void compute_aboutmenu(struct s_my_menu *menu)
set_menu_pos(SUBMENU_Y, SUBMENU_X);
- snprintf(buffer, sizeof buffer, "Product : %s", PRODUCT_NAME);
+ snprintf(buffer, sizeof buffer, "Product : %s", PRODUCT_NAME);
snprintf(statbuffer, sizeof statbuffer, "Product : %s", PRODUCT_NAME);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- snprintf(buffer, sizeof buffer, "Version : %s", VERSION);
+ snprintf(buffer, sizeof buffer, "Version : %s", VERSION);
snprintf(statbuffer, sizeof statbuffer, "Version : %s", VERSION);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- snprintf(buffer, sizeof buffer, "Author : %s", AUTHOR);
+ snprintf(buffer, sizeof buffer, "Author : %s", AUTHOR);
snprintf(statbuffer, sizeof statbuffer, "Author : %s", AUTHOR);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- snprintf(buffer, sizeof buffer, "Contact : %s", CONTACT);
+ snprintf(buffer, sizeof buffer, "Contact : %s", CONTACT);
snprintf(statbuffer, sizeof statbuffer, "Contact : %s", CONTACT);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
+ char *contributors[NB_CONTRIBUTORS] = CONTRIBUTORS;
+ for (int c=0; c<NB_CONTRIBUTORS; c++) {
+ snprintf(buffer, sizeof buffer, "Contributor : %s", contributors[c]);
+ snprintf(statbuffer, sizeof statbuffer, "Contributor : %s", contributors[c]);
+ add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
+ menu->items_count++;
+ }
+
printf("MENU: About menu done (%d items)\n", menu->items_count);
}