summaryrefslogtreecommitdiff
path: root/include/message_data_static.h
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2024-01-19 16:16:57 -0800
committerGitHub <noreply@github.com>2024-01-19 21:16:57 -0300
commitfe6494187ec658f10635fb7acad65a9ccc9f45ab (patch)
tree1ba42bde4781abb25ded1e63737966c5544513c8 /include/message_data_static.h
parente32e44ff40de947c768e48e8af71b9ce1962682e (diff)
Text Extraction + some Message Docs (#1530)
* Some Decoder WIPs * Improvements * POC * Fix bss * another newline * Staff OK * Cleanup + fix progress script * script cleanup * Some docs * makefile * Extract text from extract_assets.py * More docs * Even more docs * Other message assets * Small cleanups * Clean up decoders/encoders * Message_SetupLoadItemIcon -> Message_DecodeHeader * Some more docs * Remove mkdmadata * Fade Skippable * More cmd docs * 1 left * Last notes * HS_TIMER -> HS_TIME * More general docs * Format * Note the charmap conversion for buttons in message_data_fmt_nes.h * Remove trailing whitespace * Small fixes * PR
Diffstat (limited to 'include/message_data_static.h')
-rw-r--r--include/message_data_static.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/message_data_static.h b/include/message_data_static.h
index d139c4621..bdf4fb634 100644
--- a/include/message_data_static.h
+++ b/include/message_data_static.h
@@ -9,4 +9,18 @@ typedef struct MessageTableEntry {
/* 0x4 */ const char* segment;
} MessageTableEntry; // size = 0x8;
+#define DEFINE_MESSAGE(textId, typePos, msg) \
+ extern const char _message_##textId[];
+
+#include "assets/text/message_data.h"
+
+#undef DEFINE_MESSAGE
+
+#define DEFINE_MESSAGE(textId, typePos, msg) \
+ extern const char _message_##textId##_staff[];
+
+#include "assets/text/staff_message_data.h"
+
+#undef DEFINE_MESSAGE
+
#endif