mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-01 02:47: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",
|
"name": "LobbyCharacterAction",
|
||||||
"opcode": 11,
|
"opcode": 11,
|
||||||
"size": 496
|
"size": 496
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ShandaLogin",
|
||||||
|
"opcode": 6,
|
||||||
|
"size": 1456
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,11 @@ async fn main() {
|
||||||
ClientLobbyIpcData::LobbyCharacterAction(character_action) => {
|
ClientLobbyIpcData::LobbyCharacterAction(character_action) => {
|
||||||
connection.handle_character_action(character_action).await
|
connection.handle_character_action(character_action).await
|
||||||
}
|
}
|
||||||
|
ClientLobbyIpcData::ShandaLogin { unk } => {
|
||||||
|
dbg!(unk);
|
||||||
|
|
||||||
|
connection.send_account_list().await;
|
||||||
|
}
|
||||||
ClientLobbyIpcData::RequestEnterWorld {
|
ClientLobbyIpcData::RequestEnterWorld {
|
||||||
sequence,
|
sequence,
|
||||||
content_id,
|
content_id,
|
||||||
|
|
|
@ -115,6 +115,12 @@ pub enum ClientLobbyIpcData {
|
||||||
content_id: u64,
|
content_id: u64,
|
||||||
// TODO: what else is in here?
|
// 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]
|
#[binrw]
|
||||||
|
|
Loading…
Add table
Reference in a new issue