document Ep3 media update command

This commit is contained in:
Martin Michelsen
2022-10-04 18:20:56 -07:00
parent 9e161d99cf
commit e2525ffd36
3 changed files with 50 additions and 6 deletions
+14
View File
@@ -1607,6 +1607,20 @@ void send_ep3_card_list_update(shared_ptr<ServerState> s, shared_ptr<Client> c)
}
}
void send_ep3_media_update(
std::shared_ptr<Client> c,
uint32_t type,
uint32_t which,
const std::string& compressed_data) {
StringWriter w;
w.put<S_UpdateMediaHeader_GC_Ep3_B9>({type, which, compressed_data.size(), 0});
w.write(compressed_data);
while (w.size() & 3) {
w.put_u8(0);
}
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 = {