summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-15 11:49:51 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-15 11:49:51 -0300
commiteaea67f74ecbec186a12a819c3f000631346208c (patch)
tree9c1513f9a861513b0621f50231e17bf1e6bc2836 /include
parent741af37a4fe17d0340b221b2cb64e4c68e12464c (diff)
TProtocol: Add (and match) more command handlers
Diffstat (limited to 'include')
-rw-r--r--include/pso/TProtocol.h20
-rw-r--r--include/pso/packet_classes.h4
2 files changed, 19 insertions, 5 deletions
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h
index c5e9503..f8943e2 100644
--- a/include/pso/TProtocol.h
+++ b/include/pso/TProtocol.h
@@ -74,17 +74,17 @@ struct packet {
o(handle_C0_choice_search_option_packet, void) \
o(handle_C4_choice_search_reply_packet, void) \
o(handle_D8_infoboard_packet, void) \
- o(handle_A2_quest_list_packet, void) \
- o(handle_A3_quest_info_packet, void) \
+ o(handle_A2_recv_quest_menu_list, TMenuList<QuestListEntry, 30, 0> &quest_list) \
+ o(handle_A3_recv_quest_menu_info, TPlyText<288> &info) \
o(handle_44_recv_download_head, TRecvDownloadHead &download_head) \
o(handle_13_recv_download, TRecvDownload &download) \
- o(handle_A4_downloadable_quest_menu_packet, void) \
- o(handle_A5_downloadable_quest_info_packet, void) \
+ o(handle_A4_recv_quest_list, u8 entry_count, TMenuList<QuestListEntry, 30, 0> &quest_list) \
+ o(handle_A5_recv_quest_info, TPlyText<288> &info) \
o(handle_A6_recv_vm_download_head, TRecvDownloadHead &download_head) \
o(handle_A7_recv_vm_download, TRecvDownload &download) \
o(unused11, void) \
o(handle_1F_recv_text_list, int entry_count, GameListEntry *entries, GameListEntry &entry_0) \
- o(handle_B0_server_message_packet, void) \
+ o(handle_B0_recv_emergency_call, char *mesg) \
o(handle_88_player_arrow_color_list_packet, void) \
o(handle_8A_lobby_name_packet, void) \
o(handle_C5_player_challenge_data_packet, void) \
@@ -224,6 +224,16 @@ public:
void recv_ping(packet &pkt);
// 0x81
void recv_chat_message(packet &pkt);
+ // 0xA2
+ void recv_quest_menu_list(packet &pkt);
+ // 0xA3
+ void recv_quest_menu_info(packet &pkt);
+ // 0xA4
+ void recv_quest_list(packet &pkt);
+ // 0xA5
+ void recv_quest_info(packet &pkt);
+ // 0xB0
+ void recv_emergency_call(packet &pkt);
// Send command handlers.
int send_login3();
diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h
index b6217ca..7fbec48 100644
--- a/include/pso/packet_classes.h
+++ b/include/pso/packet_classes.h
@@ -16,6 +16,10 @@ template<size_t size>
struct TPlyText {
packet_header header;
char text[size];
+
+ void bswap() {
+ header.bswap();
+ };
};
struct game_command_header {