in proxy mode, log subcommands not implemented in the server

This commit is contained in:
Martin Michelsen
2022-03-18 18:49:00 -07:00
parent c40beb5227
commit 819027145c
3 changed files with 32 additions and 2 deletions
+5 -1
View File
@@ -1011,7 +1011,7 @@ subcommand_handler_t subcommand_handlers[0x100] = {
process_subcommand_forward_check_size_client, // Intra-map warp
process_subcommand_forward_check_size_client,
process_subcommand_forward_check_size_client,
process_subcommand_unimplemented,
process_subcommand_forward_check_size_game,
process_subcommand_forward_check_size_game,
process_subcommand_pick_up_item,
process_subcommand_unimplemented,
@@ -1196,3 +1196,7 @@ void process_subcommand(shared_ptr<ServerState> s, shared_ptr<Lobby> l,
const PSOSubcommand* sub, size_t count) {
subcommand_handlers[sub->byte[0]](s, l, c, command, flag, sub, count);
}
bool subcommand_is_implemented(uint8_t which) {
return subcommand_handlers[which] != process_subcommand_unimplemented;
}