3 Subject: Update PS3 twin GUI program
5 Update the PS3 twin GUI program to work with petitboot-multi-ui.
7 Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
10 ui/twin/ps3-twin.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
11 2 files changed, 50 insertions(+), 1 deletion(-)
15 @@ -54,7 +54,7 @@ ui_common_objs = ui/common/discover-clie
17 ncurses_objs = ui/ncurses/nc-scr.o ui/ncurses/nc-menu.o ui/ncurses/nc-ked.o \
19 -twin_objs = ui/twin/pb-twin.o
23 makefiles = Makefile $(top_srcdir)/rules.mk
25 +++ b/ui/twin/ps3-twin.c
28 + * Petitboot twin bootloader for the PS3 game console
37 +#include <libtwin/twin.h>
38 +#include <libtwin/twin_fbdev.h>
39 +static twin_fbdev_t *pboot_fbdev;
44 + * main - twin bootloader main routine.
47 + * 0 = Returned as success by ps3-utils programs.
48 + * 1 = Error, expecting a restart.
49 + * 22 = Exit to shell.
56 + log = fopen("pb-twin.log", "a");
58 + pb_log_set_stream(log);
61 + pb_log_always_flush(1);
64 + pb_log("--- pb-twin ---\n");
66 + pboot_fbdev = twin_fbdev_create(-1, SIGUSR1);
67 + if (pboot_fbdev == NULL) {
68 + perror("failed to create fbdev screen !\n");
72 + pb_log("--- end ---\n");