mirror of
https://github.com/ApfelTeeSaft/vanilla.git
synced 2026-08-26 19:33:44 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user