From 769c041207521e8b5fd46a616b499fe21088c9a7 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 20 Mar 2023 14:02:23 -0300 Subject: TProtocol: Start work on the command senders --- include/pso/TProtocol.h | 9 +++++++++ include/pso/packet_classes.h | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) (limited to 'include') diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h index 6991c67..31e6eab 100644 --- a/include/pso/TProtocol.h +++ b/include/pso/TProtocol.h @@ -245,7 +245,16 @@ public: void recv_emergency_call(packet &pkt); // Send command handlers. + // 0x03 + void send_regist(); + // 0x04 + void send_login2(int disable_udp); + // Doesn't send a command. int send_login3(); + // 0x05 + void send_logout(); + // 0x06 + void send_chat(TPlyGuildCardTag &tag, char *mesg); }; #endif diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h index 7fbec48..98f45bc 100644 --- a/include/pso/packet_classes.h +++ b/include/pso/packet_classes.h @@ -83,6 +83,24 @@ union game_command_union { u8 bytes[1024]; }; +class TRegister { +public: + packet_header header; + TPlySmth smth; + u32 sub_version; + u8 is_extended; + u8 language; + u16 unknown; + char serial_number[16]; + char access_key[16]; +public: + void bswap() { + header.bswap(); + smth.bswap(); + bswap_32(&sub_version); + }; +}; + class TRecvPort { public: packet_header header; -- cgit v1.2.3-13-gbd6f