Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JMessage.h
Go to the documentation of this file.
1#ifndef JMESSAGE_H
2#define JMESSAGE_H
3
4#include <dolphin/dolphin.h>
5
6// Struct definitions might be wrong
7typedef struct bmg_header_t {
8 /* 0x00 */ char magic[8]; // "MESGbmg1"
9 /* 0x08 */ u32 size; // total size of file not including FLW1/FLI1 sections
10 /* 0x0C */ u32 n_sections; // number of sections
11 /* 0x10 */ u8 encoding; // text encoding
12 /* 0x11 */ u8 padding[0x20 - 0x11]; // padding
14
15typedef struct bmg_section_t {
16 /* 0x0 */ u32 magic; // four character magic string
17 /* 0x4 */ u32 size; // total size of the section
19
20typedef struct inf1_entry_t {
21 /* 0x0 */ u32 string_offset; // offset into DAT1 section entries, pointing to where message text starts
22 /* 0x4 */ // attributes // attribute data. size fills up the rest of defined INF1 "entry_size"
24
25typedef struct inf1_section_t {
26 /* 0x00 */ bmg_section_t header; // section header
27 /* 0x08 */ u16 entry_num; // number of entries in this section
28 /* 0x0A */ u16 entry_size; // size of an entry
29 /* 0x0C */ u8 padding[4]; // padding
31
32typedef struct str1_entry_t {
33 char str[0];
35
36typedef struct str1_section_t {
37 /* 0x00 */ bmg_section_t header; // section header
38 /* 0x08 */ str1_entry_t entries[0];
40
41#endif /* JMESSAGE_H */
struct inf1_section_t inf1_section_t
struct bmg_section_t bmg_section_t
struct str1_entry_t str1_entry_t
struct bmg_header_t bmg_header_t
struct str1_section_t str1_section_t
struct inf1_entry_t inf1_entry_t
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
Definition JMessage.h:7
u32 size
Definition JMessage.h:9
u8 padding[0x20 - 0x11]
Definition JMessage.h:12
u8 encoding
Definition JMessage.h:11
u32 n_sections
Definition JMessage.h:10
char magic[8]
Definition JMessage.h:8
Definition JMessage.h:15
u32 size
Definition JMessage.h:17
u32 magic
Definition JMessage.h:16
Definition JMessage.h:20
u32 string_offset
Definition JMessage.h:21
Definition JMessage.h:25
u8 padding[4]
Definition JMessage.h:29
u16 entry_size
Definition JMessage.h:28
u16 entry_num
Definition JMessage.h:27
bmg_section_t header
Definition JMessage.h:26
Definition JMessage.h:32
char str[0]
Definition JMessage.h:33
Definition JMessage.h:36
bmg_section_t header
Definition JMessage.h:37
str1_entry_t entries[0]
Definition JMessage.h:38