Show Install/Update completion based on detected mode.
All checks were successful
Build / Build (push) Successful in 14s
All checks were successful
Build / Build (push) Successful in 14s
Drop the version header from the final summary and label the result as Update or Installation.
This commit is contained in:
@@ -657,25 +657,20 @@ void ipl_main(void) {
|
||||
gfx_con_setpos(0, 0);
|
||||
|
||||
// Summary
|
||||
set_color(COLOR_CYAN);
|
||||
gfx_printf("========================================\n");
|
||||
gfx_printf(" OmniNX Installer Payload v%s\n", VERSION);
|
||||
gfx_printf("========================================\n\n");
|
||||
set_color(COLOR_WHITE);
|
||||
|
||||
const char *op_name = (mode == INSTALL_MODE_UPDATE) ? " Update" : " Installation";
|
||||
if (result == FR_OK && total_errors == 0) {
|
||||
set_color(COLOR_GREEN);
|
||||
gfx_printf("========================================\n");
|
||||
gfx_printf(" Installation abgeschlossen!\n");
|
||||
gfx_printf("========================================\n");
|
||||
gfx_printf("=======================================\n");
|
||||
gfx_printf(" %s abgeschlossen!\n", op_name);
|
||||
gfx_printf("=======================================\n");
|
||||
} else {
|
||||
set_color(COLOR_RED);
|
||||
gfx_printf("========================================\n");
|
||||
gfx_printf(" Installation beendet\n");
|
||||
gfx_printf("=======================================\n");
|
||||
gfx_printf(" %s beendet\n", op_name);
|
||||
if (total_errors > 0) {
|
||||
gfx_printf(" %d Fehler\n", total_errors);
|
||||
}
|
||||
gfx_printf("========================================\n");
|
||||
gfx_printf("=======================================\n");
|
||||
}
|
||||
set_color(COLOR_WHITE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user