document more ep3 commands

This commit is contained in:
Martin Michelsen
2022-12-03 12:14:58 -08:00
parent 421f27d63c
commit c3c6f60664
7 changed files with 109 additions and 120 deletions
+6 -1
View File
@@ -1854,7 +1854,6 @@ void send_ep3_media_update(
send_command(c, 0xB9, 0x00, w.str());
}
// sends the client a generic rank
void send_ep3_rank_update(shared_ptr<Client> c) {
S_RankUpdate_GC_Ep3_B7 cmd = {
0, "\0\0\0\0\0\0\0\0\0\0\0", 1000000, 1000000, 0xFFFFFFFF};
@@ -1893,6 +1892,12 @@ void send_ep3_card_battle_table_state(shared_ptr<Lobby> l, uint16_t table_number
}
}
void send_ep3_set_context_token(shared_ptr<Client> c, uint32_t context_token) {
G_SetContextToken_GC_Ep3_6xB4x1F cmd;
cmd.context_token = context_token;
send_command_t(c, 0xC9, 0x00, cmd);
}
void set_mask_for_ep3_game_command(void* vdata, size_t size, uint8_t mask_key) {
if (size < 8) {
throw logic_error("Episode 3 game command is too short for masking");