more format documentation updates

This commit is contained in:
Martin Michelsen
2022-07-13 17:20:17 -07:00
parent 34ab156451
commit ff7031544a
2 changed files with 12 additions and 18 deletions
+10 -16
View File
@@ -347,10 +347,10 @@ template <typename ClientConfigT>
struct S_UpdateClientConfig { struct S_UpdateClientConfig {
le_uint32_t player_tag; le_uint32_t player_tag;
le_uint32_t guild_card_number; le_uint32_t guild_card_number;
// The ClientConfig structure (defined in Client.hh) describes how newserv // The ClientConfig structure describes how newserv uses this command; other
// uses this command; other servers do not use the same format for the // servers do not use the same format for the following 0x20 or 0x28 bytes (or
// following 0x20 bytes (or may not use it at all). The cfg field is opaque to // may not use it at all). The cfg field is opaque to the client; it will send
// the client; it will send back the contents verbatim in its next 9E command. // back the contents verbatim in its next 9E command.
ClientConfigT cfg; ClientConfigT cfg;
}; };
@@ -366,7 +366,7 @@ struct S_UpdateClientConfig_BB_04 : S_UpdateClientConfig<ClientConfigBB> { };
// struct to make parsing easier. // struct to make parsing easier.
struct C_Chat_06 { struct C_Chat_06 {
uint64_t unused; parray<le_uint32_t, 2> unused;
union { union {
char dcgc[0]; char dcgc[0];
char16_t pcbb[0]; char16_t pcbb[0];
@@ -385,8 +385,8 @@ struct S_MenuEntry {
le_uint16_t flags; // should be 0x0F04 le_uint16_t flags; // should be 0x0F04
ptext<CharT, EntryLength> text; ptext<CharT, EntryLength> text;
}; };
struct S_MenuEntry_PC_BB_07 : S_MenuEntry<char16_t, 17> { }; struct S_MenuEntry_PC_BB_07_1F : S_MenuEntry<char16_t, 17> { };
struct S_MenuEntry_DC_GC_07 : S_MenuEntry<char, 18> { }; struct S_MenuEntry_DC_GC_07_1F : S_MenuEntry<char, 18> { };
// 08 (C->S): Request game list // 08 (C->S): Request game list
// No arguments // No arguments
@@ -458,27 +458,21 @@ struct C_MenuSelection_10_Flag00 {
}; };
template <typename CharT> template <typename CharT>
struct C_MenuSelection_10_Flag01 { struct C_MenuSelection_10_Flag01 : C_MenuSelection_10_Flag00 {
le_uint32_t menu_id;
le_uint32_t item_id;
ptext<CharT, 0x10> unknown_a1; ptext<CharT, 0x10> unknown_a1;
}; };
struct C_MenuSelection_DC_GC_10_Flag01 : C_MenuSelection_10_Flag01<char> { }; struct C_MenuSelection_DC_GC_10_Flag01 : C_MenuSelection_10_Flag01<char> { };
struct C_MenuSelection_PC_BB_10_Flag01 : C_MenuSelection_10_Flag01<char16_t> { }; struct C_MenuSelection_PC_BB_10_Flag01 : C_MenuSelection_10_Flag01<char16_t> { };
template <typename CharT> template <typename CharT>
struct C_MenuSelection_10_Flag02 { struct C_MenuSelection_10_Flag02 : C_MenuSelection_10_Flag00 {
le_uint32_t menu_id;
le_uint32_t item_id;
ptext<CharT, 0x10> password; ptext<CharT, 0x10> password;
}; };
struct C_MenuSelection_DC_GC_10_Flag02 : C_MenuSelection_10_Flag02<char> { }; struct C_MenuSelection_DC_GC_10_Flag02 : C_MenuSelection_10_Flag02<char> { };
struct C_MenuSelection_PC_BB_10_Flag02 : C_MenuSelection_10_Flag02<char16_t> { }; struct C_MenuSelection_PC_BB_10_Flag02 : C_MenuSelection_10_Flag02<char16_t> { };
template <typename CharT> template <typename CharT>
struct C_MenuSelection_10_Flag03 { struct C_MenuSelection_10_Flag03 : C_MenuSelection_10_Flag00 {
le_uint32_t menu_id;
le_uint32_t item_id;
ptext<CharT, 0x10> unknown_a1; ptext<CharT, 0x10> unknown_a1;
ptext<CharT, 0x10> password; ptext<CharT, 0x10> password;
}; };
+2 -2
View File
@@ -739,9 +739,9 @@ void send_menu(shared_ptr<Client> c, const u16string& menu_name,
uint32_t menu_id, const vector<MenuItem>& items, bool is_info_menu) { uint32_t menu_id, const vector<MenuItem>& items, bool is_info_menu) {
if (c->version == GameVersion::PC || c->version == GameVersion::PATCH || if (c->version == GameVersion::PC || c->version == GameVersion::PATCH ||
c->version == GameVersion::BB) { c->version == GameVersion::BB) {
send_menu_t<S_MenuEntry_PC_BB_07>(c, menu_name, menu_id, items, is_info_menu); send_menu_t<S_MenuEntry_PC_BB_07_1F>(c, menu_name, menu_id, items, is_info_menu);
} else { } else {
send_menu_t<S_MenuEntry_DC_GC_07>(c, menu_name, menu_id, items, is_info_menu); send_menu_t<S_MenuEntry_DC_GC_07_1F>(c, menu_name, menu_id, items, is_info_menu);
} }
} }