]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/ps3-cui.c
Add generic CUI program
[petitboot] / ui / ncurses / ps3-cui.c
index 71a21778fb79f37e8107acefadc913e3562ed283..f4c9841459547bc7abca4c897549fd349efb5305 100644 (file)
@@ -316,8 +316,7 @@ static struct pmenu *ps3_mm_init(struct ps3_cui *ps3_cui)
        int result;
        struct pmenu *m;
        struct pmenu_item *i;
-       static const char *const bgo[] =
-               {"/usr/sbin/ps3-boot-game-os-NOT", NULL};
+       static const char *const bgo[] = {"/usr/sbin/ps3-boot-game-os", NULL};
 
        m = pmenu_init(ps3_cui->cui, 3, cui_on_exit);
 
@@ -327,7 +326,12 @@ static struct pmenu *ps3_mm_init(struct ps3_cui *ps3_cui)
        }
 
        m->hot_key = ps3_hot_key;
+#if defined(DEBUG)
+       m->scr.frame.title = talloc_strdup(m,
+               "Petitboot PS3 (ver " PACKAGE_VERSION ")");
+#else
        m->scr.frame.title = talloc_strdup(m, "Petitboot PS3");
+#endif
        m->scr.frame.help = talloc_strdup(m,
                "ESC=exit, Enter=accept, E,e=edit");
        m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot");