mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 21:05:12 +00:00
Reworked text extraction + add JP text extraction (#1980)
* Reworked text extraction + add JP text extraction * Format * Suggested changes * Correct address for gc-us sJpnMessageEntryTable Co-authored-by: cadmic <cadmic24@gmail.com> --------- Co-authored-by: cadmic <cadmic24@gmail.com>
This commit is contained in:
parent
264581ff3f
commit
baf1e8c174
19 changed files with 1326 additions and 707 deletions
|
@ -2,9 +2,22 @@
|
|||
|
||||
#include "message_data_fmt.h"
|
||||
|
||||
#define DEFINE_MESSAGE(textId, type, yPos, nesMessage, gerMessage, fraMessage) \
|
||||
const char _message_##textId##_nes[sizeof(nesMessage)] = { nesMessage END };
|
||||
#define DEFINE_MESSAGE(textId, type, yPos, jpnMessage, nesMessage, gerMessage, fraMessage) \
|
||||
const char _message_##textId##_nes[] = nesMessage;
|
||||
|
||||
#define DEFINE_MESSAGE_NES(textId, type, yPos, nesMessage) DEFINE_MESSAGE(textId, type, yPos, nesMessage, , )
|
||||
#define DEFINE_MESSAGE_NES(textId, type, yPos, jpnMessage, nesMessage, gerMessage, fraMessage) \
|
||||
/* Present */ const char _message_##textId##_nes[] = nesMessage;
|
||||
#define DEFINE_MESSAGE_JPN(textId, type, yPos, jpnMessage, nesMessage, gerMessage, fraMessage) \
|
||||
/* Not Present */
|
||||
|
||||
#include "assets/text/message_data.enc.h"
|
||||
#if (TEXT_LANGUAGE == TEXT_LANG_US_JP)
|
||||
// On US/JP versions, the font message is with JPN
|
||||
#define DEFINE_MESSAGE_FFFC(textId, type, yPos, jpnMessage, nesMessage, gerMessage, fraMessage) \
|
||||
/* Not Present */
|
||||
#else
|
||||
// On EU versions, the font message is with NES
|
||||
#define DEFINE_MESSAGE_FFFC(textId, type, yPos, jpnMessage, nesMessage, gerMessage, fraMessage) \
|
||||
/* Present */ const char _message_##textId##_nes[] = nesMessage;
|
||||
#endif
|
||||
|
||||
#include "assets/text/message_data.enc.nes.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue