1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

tui: Always print an error when Nyx is missing

This commit is contained in:
CTCaer 2019-12-04 19:39:15 +02:00
parent b61b212218
commit c24d943122

View file

@ -157,14 +157,13 @@ void *tui_do_menu(menu_t *menu)
gfx_con_setcol(0xFFCCCCCC, 1, 0xFF1B1B1B); gfx_con_setcol(0xFFCCCCCC, 1, 0xFF1B1B1B);
gfx_putc('\n'); gfx_putc('\n');
// Print help and battery status. // Print erros, help and battery status.
gfx_con_setpos(0, 1127); gfx_con_setpos(0, h_cfg.errors ? 1111 : 1127);
if (h_cfg.errors) gfx_printf("%k Warning: %k", 0xFF800000, 0xFF555555);
{ if (h_cfg.errors & ERR_LIBSYS_LP0)
gfx_printf("%k Warning: %k", 0xFF800000, 0xFF555555); gfx_printf("Sleep mode library is missing!\n");
if (h_cfg.errors & ERR_LIBSYS_LP0) gfx_printf(" Nyx is missing!\n");
gfx_printf("Sleep mode library is missing!\n");
}
gfx_con_setpos(0, 1191); gfx_con_setpos(0, 1191);
gfx_printf("%k VOL: Move up/down\n PWR: Select option%k", 0xFF555555, 0xFFCCCCCC); gfx_printf("%k VOL: Move up/down\n PWR: Select option%k", 0xFF555555, 0xFFCCCCCC);