Show Install/Update completion based on detected mode.
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:
2026-07-17 13:43:00 +02:00
parent 7b85d428a8
commit 05926f7828

View File

@@ -657,25 +657,20 @@ void ipl_main(void) {
gfx_con_setpos(0, 0); gfx_con_setpos(0, 0);
// Summary // Summary
set_color(COLOR_CYAN); const char *op_name = (mode == INSTALL_MODE_UPDATE) ? " Update" : " Installation";
gfx_printf("========================================\n");
gfx_printf(" OmniNX Installer Payload v%s\n", VERSION);
gfx_printf("========================================\n\n");
set_color(COLOR_WHITE);
if (result == FR_OK && total_errors == 0) { if (result == FR_OK && total_errors == 0) {
set_color(COLOR_GREEN); set_color(COLOR_GREEN);
gfx_printf("========================================\n"); gfx_printf("=======================================\n");
gfx_printf(" Installation abgeschlossen!\n"); gfx_printf(" %s abgeschlossen!\n", op_name);
gfx_printf("========================================\n"); gfx_printf("=======================================\n");
} else { } else {
set_color(COLOR_RED); set_color(COLOR_RED);
gfx_printf("========================================\n"); gfx_printf("=======================================\n");
gfx_printf(" Installation beendet\n"); gfx_printf(" %s beendet\n", op_name);
if (total_errors > 0) { if (total_errors > 0) {
gfx_printf(" %d Fehler\n", total_errors); gfx_printf(" %d Fehler\n", total_errors);
} }
gfx_printf("========================================\n"); gfx_printf("=======================================\n");
} }
set_color(COLOR_WHITE); set_color(COLOR_WHITE);