mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-30 18:37:45 +00:00
Add support for Shanda (Chinese) logins to the lobby server
This only means logging into the lobby server works, trying to login to a World doesn't work as even the current version is too old. It probably won't work without modifications anyway.
This commit is contained in:
parent
76ad6822c3
commit
2a6c9ee76c
3 changed files with 16 additions and 0 deletions
|
@ -330,6 +330,11 @@
|
|||
"name": "LobbyCharacterAction",
|
||||
"opcode": 11,
|
||||
"size": 496
|
||||
},
|
||||
{
|
||||
"name": "ShandaLogin",
|
||||
"opcode": 6,
|
||||
"size": 1456
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -107,6 +107,11 @@ async fn main() {
|
|||
ClientLobbyIpcData::LobbyCharacterAction(character_action) => {
|
||||
connection.handle_character_action(character_action).await
|
||||
}
|
||||
ClientLobbyIpcData::ShandaLogin { unk } => {
|
||||
dbg!(unk);
|
||||
|
||||
connection.send_account_list().await;
|
||||
}
|
||||
ClientLobbyIpcData::RequestEnterWorld {
|
||||
sequence,
|
||||
content_id,
|
||||
|
|
|
@ -115,6 +115,12 @@ pub enum ClientLobbyIpcData {
|
|||
content_id: u64,
|
||||
// TODO: what else is in here?
|
||||
},
|
||||
#[br(pre_assert(*magic == ClientLobbyIpcType::ShandaLogin))]
|
||||
ShandaLogin {
|
||||
#[bw(pad_size_to = 1456)]
|
||||
#[br(count = 1456)]
|
||||
unk: Vec<u8>,
|
||||
},
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
|
|
Loading…
Add table
Reference in a new issue