diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-20 14:02:23 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-20 14:02:23 -0300 |
commit | 769c041207521e8b5fd46a616b499fe21088c9a7 (patch) | |
tree | 079a2cf414909b04a9ae3668c054c8988d7938fd /include/pso/packet_classes.h | |
parent | 0d2f9f05d2fdf31ca21e6e5795880f98dc38821a (diff) |
TProtocol: Start work on the command senders
Diffstat (limited to 'include/pso/packet_classes.h')
-rw-r--r-- | include/pso/packet_classes.h | 18 |
1 files changed, 18 insertions, 0 deletions
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; |