From edff4bb1c02cb788c9497f5c3b2bd2a1fdd90004 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed, 14 Jan 2026 16:15:14 -0800 Subject: [PATCH] ui: use "Wii U" only for name of first synced console Most users will only have a single Wii U, and it's kinda ugly for it to be called "Wii U 1". Default to "Wii U" for the first synced console, and subsequent consoles will be "Wii U 2", "Wii U 3", etc. --- gui/menu/menu_sync.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/menu/menu_sync.c b/gui/menu/menu_sync.c index 557a541..ccc2478 100644 --- a/gui/menu/menu_sync.c +++ b/gui/menu/menu_sync.c @@ -103,7 +103,13 @@ void sync_animation_step(vui_context_t *ctx, int64_t time, void *userdata) if (found == -1) { vpi_console_entry_t console; - snprintf(console.name, sizeof(console.name), "Wii U %i", vpi_config.connected_console_count + 1); + if (vpi_config.connected_console_count == 0) { + // Most users will only have one Wii U, so for their first + // sync, just use "Wii U" instead of "Wii U 1" + strcpy(console.name, "Wii U"); + } else { + snprintf(console.name, sizeof(console.name), "Wii U %i", vpi_config.connected_console_count + 1); + } console.bssid = sync->data.bssid; console.psk = sync->data.psk; found = vpi_config_add_console(&console);