1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-04 17:27:31 +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_putc('\n');
// Print help and battery status.
gfx_con_setpos(0, 1127);
if (h_cfg.errors)
{
gfx_printf("%k Warning: %k", 0xFF800000, 0xFF555555);
if (h_cfg.errors & ERR_LIBSYS_LP0)
gfx_printf("Sleep mode library is missing!\n");
}
// Print erros, help and battery status.
gfx_con_setpos(0, h_cfg.errors ? 1111 : 1127);
gfx_printf("%k Warning: %k", 0xFF800000, 0xFF555555);
if (h_cfg.errors & ERR_LIBSYS_LP0)
gfx_printf("Sleep mode library is missing!\n");
gfx_printf(" Nyx is missing!\n");
gfx_con_setpos(0, 1191);
gfx_printf("%k VOL: Move up/down\n PWR: Select option%k", 0xFF555555, 0xFFCCCCCC);