From 87676bafd79d852dfd6d9818ecc1a5aee5a39835 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 12 Jul 2025 08:25:10 -0400 Subject: [PATCH] Allow selecting a service account in the lobby --- src/bin/kawari-lobby.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/kawari-lobby.rs b/src/bin/kawari-lobby.rs index 2e839a2..a7780f1 100644 --- a/src/bin/kawari-lobby.rs +++ b/src/bin/kawari-lobby.rs @@ -298,10 +298,14 @@ async fn main() { connection.send_error(*sequence, 2002, 13006).await; } } - ClientLobbyIpcData::ServiceLogin { sequence, .. } => { - // TODO: support selecting a service account - connection.selected_service_account = - Some(connection.service_accounts[0].id); + ClientLobbyIpcData::ServiceLogin { + sequence, + account_index, + .. + } => { + connection.selected_service_account = Some( + connection.service_accounts[*account_index as usize].id, + ); connection.send_lobby_info(*sequence).await } ClientLobbyIpcData::CharaMake(character_action) => {