Classes | |
| struct | zelda3_message |
| In-game text message data. More... | |
Typedefs | |
| typedef struct zelda3_message | zelda3_message |
| In-game text message data. | |
Functions | |
| yaze_status | yaze_load_messages (const zelda3_rom *rom, zelda3_message **messages, int *message_count) |
| Load all text messages from ROM. | |
| const zelda3_message * | yaze_get_message (const zelda3_rom *rom, int message_id) |
| Get a specific message by ID. | |
| void | yaze_free_messages (zelda3_message *messages, int message_count) |
| Free message data. | |
| typedef struct zelda3_message zelda3_message |
In-game text message data.
Represents a text message from the game, including both raw ROM data and parsed/decoded text content.
| yaze_status yaze_load_messages | ( | const zelda3_rom * | rom, |
| zelda3_message ** | messages, | ||
| int * | message_count | ||
| ) |
Load all text messages from ROM.
Loads and parses all in-game text messages from the ROM.
| rom | The ROM to load messages from |
| messages | Pointer to store array of messages |
| message_count | Pointer to store number of messages loaded |
Definition at line 234 of file yaze.cc.
References zelda3_rom::data, zelda3_message::id, zelda3_rom::impl, yaze::editor::ReadAllTextData(), YAZE_ERROR_INVALID_ARG, YAZE_ERROR_MEMORY, YAZE_ERROR_NOT_INITIALIZED, and YAZE_OK.

| const zelda3_message * yaze_get_message | ( | const zelda3_rom * | rom, |
| int | message_id | ||
| ) |
Get a specific message by ID.
| rom | ROM to load from |
| message_id | Message ID to retrieve |
| void yaze_free_messages | ( | zelda3_message * | messages, |
| int | message_count | ||
| ) |
Free message data.
| messages | Array of messages to free |
| message_count | Number of messages in array |