![]() ![]() Localized strings are a set of one string block offset per locale plus a bitmask up to Cataclysm. Printf ("record %u: %u, %s\n", *(uint32_t*)(records i * record_size /* id */), string_block *(uint32_t*)(records i * record_size sizeof (uint32_t) /* name */)) ĭBC records can contain localized strings. Uint32_t record_size = *(uint32_t*) (file 3 * sizeof (uint32_t)) Ĭonst char* records = file 5 * sizeof (uint32_t) /* header */ Ĭonst char* string_block = records record_size * record_count Printf ("record %u: %u, %s\n",, file.string_block.name]) Printing the id and name of record i can be done by A zero length string then only contains one byte being zero. Strings are zero terminated (c strings) and might be zero length. A record contains an offset into that block. Strings are not stored in record but in an additional string block. ![]() Record_type records Ĭhar string_block ĭBC records can contain strings. static_assert (header.record_size = sizeof (record_type)) Uint32_t record_size // sum (sizeof (field_type_i)) | 0 Uint32_t field_count // fields per record Uint32_t record_count // records per file If you add documentation for a file, please add the correct categories (also the build number) as well. ![]() For a list of existing DBC files and their contents see the categories DBC, Vanilla, Burning Crusade, Wrath of the Lich King, Cataclysm and Mists of Pandaria. This page describes the structure of DBC files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |