EZ Text Replacer for Zelda64Recompiled 2.3.0
 
Loading...
Searching...
No Matches
eztr_api.h
Go to the documentation of this file.
1#ifndef __EZTR_API__
2#define __EZTR_API__
3
8
9#include "modding.h"
10#include "global.h"
11
12#ifdef DOXYGEN
13#define EZTR_IMPORT(func) func
14#define EZTR_PACK_STRUCT
15
16#else
17
18#define EZTR_IMPORT(func) RECOMP_IMPORT(EZTR_MOD_ID_STR, func)
19#define EZTR_PACK_STRUCT __attribute__((packed))
20
21typedef struct {
22 u16 new_id;
23 u8 out_success;
24} _EZTR_CustomMsgHandleSetter;
25
26#define __EZTR_CUSTOM_MSG_HANDLE_BODY(name) { \
27 static u16 id; \
28 static u8 is_set = 0; \
29 if (setter != NULL) { \
30 if (is_set) { \
31 _EZTR_ReportDebugMessage("EZTR_CustomMsgHandle '" #name "', Header Version 2.3.0: The textId has already been set and will not be updated."); \
32 setter->out_success = 0; \
33 } \
34 else { \
35 _EZTR_ReportDebugMessage("EZTR_CustomMsgHandle '" #name "', Header Version 2.3.0: Assignment of textId was successful."); \
36 id = setter->new_id; \
37 is_set = 1; \
38 setter->out_success = 1; \
39 } \
40 } \
41 return id; \
42} \
43
44#endif
45
53
54
61#define EZTR_MOD_ID_STR "MM_EZ_Text_Replacer_API"
62
63#ifndef DOXYGEN
64EZTR_IMPORT( void _EZTR_ReportFatalMessage(char* msg));
65EZTR_IMPORT( void _EZTR_ReportErrorMessage(char* msg));
66EZTR_IMPORT( void _EZTR_ReportWarningMessage(char* msg));
67EZTR_IMPORT( void _EZTR_ReportInfoMessage(char* msg));
68EZTR_IMPORT( void _EZTR_ReportDebugMessage(char* msg));
69EZTR_IMPORT( void _EZTR_ReportVerboseMessage(char* msg));
70
71// Typo, Included for backwards compatibility:
72EZTR_IMPORT( void _EXTR_ReportErrorMessage(char* msg));
73#endif
74
75#define EZTR_MSG_HIGHEST_ID 0x354C
81#define EZTR_MSG_BUFFER_SIZE 1280
82
88#define EZTR_MSG_BUFFER_WIDE_SIZE 640
89
96#define EZTR_MSG_HEADER_SIZE 11
97
103 #define EZTR_MSG_CONTENT_SIZE 1269 // MESSAGE_BUFFER_SIZE - MESSAGE_HEADER_SIZE
104
105#define EZTR_MSG_ENDING_CHAR '\xBF'
106#define EZTR_PIPE_CHAR '|'
107
109
139
144#ifdef EZTR_NO_HANDLE_PREFIX
145#define EZTR_CUSTOM_MSG_HANDLE_NAME(name) name
146#else
147#define EZTR_CUSTOM_MSG_HANDLE_NAME(name_suffix) EZTR_CustomMsgHandle_##name_suffix
148#endif
156#define EZTR_DEFINE_CUSTOM_MSG_HANDLE_NO_EXPORT(name) \
157u16 EZTR_CUSTOM_MSG_HANDLE_NAME(name)(_EZTR_CustomMsgHandleSetter* setter) \
158__EZTR_CUSTOM_MSG_HANDLE_BODY(name)
159
170#define EZTR_DEFINE_CUSTOM_MSG_HANDLE(name) RECOMP_EXPORT \
171u16 EZTR_CUSTOM_MSG_HANDLE_NAME(name)(_EZTR_CustomMsgHandleSetter* setter) \
172__EZTR_CUSTOM_MSG_HANDLE_BODY(name)
173
180#define EZTR_DECLARE_CUSTOM_MSG_HANDLE(name) u16 EZTR_CUSTOM_MSG_HANDLE_NAME(name)(_EZTR_CustomMsgHandleSetter* setter)
181
188#define EZTR_EXTERN_CUSTOM_MSG_HANDLE(name) EZTR_DECLARE_CUSTOM_MSG_HANDLE(name)
189
190
196#define EZTR_IMPORT_CUSTOM_MSG_HANDLE(mod_str, name_suffix) RECOMP_IMPORT(mod_str, u16 EZTR_CustomMsgHandle_##name_suffix(_EZTR_CustomMsgHandleSetter* setter))
197
203#define EZTR_IMPORT_CUSTOM_MSG_HANDLE_NO_PREFIX(mod_str, name) RECOMP_IMPORT(mod_str, u16 name(_EZTR_CustomMsgHandleSetter* setter))
204
211#define EZTR_GET_CUSTOM_MSG_ID(handle) handle(NULL)
212
213// Shorthand:
220#define EZTR_HNAME(name_suffix) EZTR_CUSTOM_MSG_HANDLE_NAME(name_suffix)
221
230#define EZTR_GET_ID(handle) EZTR_GET_CUSTOM_MSG_ID(handle)
231
232
241#define EZTR_GET_ID_H(handle) EZTR_GET_CUSTOM_MSG_ID(EZTR_CUSTOM_MSG_HANDLE_NAME(handle))
242
263#define EZTR_MSG_CALLBACK(fname) void fname(EZTR_MsgBuffer* buf, u16 textId, PlayState* play)
264
278#define EZTR_ON_INIT RECOMP_CALLBACK("MM_EZ_Text_Replacer_API", EZTR_OnInit)
279
294#define EZTR_ON_DUMP_BUFFER(func_name) \
295 RECOMP_CALLBACK("MM_EZ_Text_Replacer_API", EZTR_OnDumpBuffer) void func_name(const char* category, u16 textId, s32 len, EZTR_MsgBuffer* buf)
296
311#define EZTR_ON_DUMP_BUFFER_FULL(func_name) \
312 RECOMP_CALLBACK("MM_EZ_Text_Replacer_API", EZTR_OnDumpBufferFull) void func_name(const char* category, u16 textId, s32 len, EZTR_MsgBuffer* buf)
313
324#define EZTR_NO_VALUE 0xffff
325
333
340typedef union {
341 char schar[EZTR_MSG_BUFFER_SIZE]; // msgBuf
342 u16 wchar[EZTR_MSG_BUFFER_WIDE_SIZE]; // msgBufWide
343 u64 force_structure_alignment_msg;
345
346
353typedef struct {
354 char header[EZTR_MSG_HEADER_SIZE];
355 char content[EZTR_MSG_CONTENT_SIZE];
357
358
370typedef struct EZTR_PACK_STRUCT {
371 u8 text_box_type;
372 u8 text_box_y_pos;
373 u8 display_icon;
374 u16 next_message_id;
375 u16 first_item_rupees;
376 u16 second_item_rupees;
377 u16 padding;
378 char content[EZTR_MSG_CONTENT_SIZE];
380
393typedef union {
395 EZTR_MsgBuffer_Partition partitions;
398
408typedef u16 (*EZTR_CustomMsgHandle)(_EZTR_CustomMsgHandleSetter* setter);
409
416typedef void (*EZTR_MsgCallback)(EZTR_MsgBuffer* buf, u16 textId, PlayState* play);
417
425typedef enum {
426 EZTR_STANDARD_TEXT_BOX_I = 0X00,
427 EZTR_WOODEN_SIGN_BACKGROUND = 0X01,
428 EZTR_TRANSLUSCENT_BLUE_TEXT_BOX = 0X02,
429 EZTR_OCARINA_STAFF = 0X03,
430 EZTR_INVISIBLE_TEXT_BOX_I = 0X04,
431 EZTR_INVISIBLE_TEXT_BOX_II = 0X05,
432 EZTR_STANDARD_TEXT_BOX_II = 0X06,
433 EZTR_INVISIBLE_TEXT_BOX = 0X07,
434 EZTR_BLUE_TEXT_BOX = 0X08,
435 EZTR_RED_TEXT_BOX_I = 0X09,
436 EZTR_INVISIBLE_TEXT_BOX_III = 0X0A,
437 EZTR_INVISIBLE_TEXT_BOX_IV = 0X0B,
438 EZTR_INVISIBLE_TEXT_BOX_V = 0X0C,
439 EZTR_BOMBERS_NOTEBOOK = 0X0D,
440 EZTR_INVISIBLE_TEXT_BOX_VI = 0X0E,
441 EZTR_RED_TEXT_BOX_II = 0X0F
443
454typedef enum {
455 EZTR_ICON_NOTHING = 0x00,
456 EZTR_ICON_GREEN_RUPEE = 0x01,
457 EZTR_ICON_BLUE_RUPEE = 0x02,
458 EZTR_ICON_WHITE_RUPEE = 0x03,
459 EZTR_ICON_RED_RUPEE = 0x04,
460 EZTR_ICON_PURPLE_RUPEE = 0x05,
461 EZTR_ICON_WHITE_RUPEE_1 = 0x06,
462 EZTR_ICON_ORANGE_RUPEE = 0x07,
463 EZTR_ICON_ADULT_WALLET = 0x08,
464 EZTR_ICON_GIANTS_WALLET = 0x09,
465 EZTR_ICON_RECOVERY_HEART = 0x0A,
466 EZTR_ICON_RECOVERY_HEART_1 = 0x0B,
467 EZTR_ICON_PIECE_OF_HEART = 0x0C,
468 EZTR_ICON_HEART_CONTAINER = 0x0D,
469 EZTR_ICON_SMALL_MAGIC_JAR = 0x0E,
470 EZTR_ICON_LARGE_MAGIC_JAR = 0x0F,
471 EZTR_ICON_RECOVERY_HEART_2 = 0x10,
472 EZTR_ICON_STRAY_FAIRY = 0x11,
473 EZTR_ICON_RECOVERY_HEART_3 = 0x12,
474 EZTR_ICON_RECOVERY_HEART_4 = 0x13,
475 EZTR_ICON_BOMB = 0x14,
476 EZTR_ICON_BOMB_1 = 0x15,
477 EZTR_ICON_BOMB_2 = 0x16,
478 EZTR_ICON_BOMB_3 = 0x17,
479 EZTR_ICON_BOMB_4 = 0x18,
480 EZTR_ICON_DEKU_STICK = 0x19,
481 EZTR_ICON_BOMBCHU = 0x1A,
482 EZTR_ICON_BOMB_BAG = 0x1B,
483 EZTR_ICON_BIG_BOMB_BAG = 0x1C,
484 EZTR_ICON_BIGGER_BOMB_BAG = 0x1D,
485 EZTR_ICON_HEROS_BOW = 0x1E,
486 EZTR_ICON_HEROS_BOW_1 = 0x1F,
487 EZTR_ICON_HEROS_BOW_2 = 0x20,
488 EZTR_ICON_HEROS_BOW_3 = 0x21,
489 EZTR_ICON_QUIVER = 0x22,
490 EZTR_ICON_BIG_QUIVER = 0x23,
491 EZTR_ICON_BIGGEST_QUIVER = 0x24,
492 EZTR_ICON_FIRE_ARROW = 0x25,
493 EZTR_ICON_ICE_ARROW = 0x26,
494 EZTR_ICON_LIGHT_ARROW = 0x27,
495 EZTR_ICON_DEKU_NUT = 0x28,
496 EZTR_ICON_DEKU_NUT_1 = 0x29,
497 EZTR_ICON_DEKU_NUT_2 = 0x2A,
498 EZTR_ICON_NOTHING_1 = 0x2B,
499 EZTR_ICON_NOTHING_2 = 0x2C,
500 EZTR_ICON_NOTHING_3 = 0x2D,
501 EZTR_ICON_NOTHING_4 = 0x2E,
502 EZTR_ICON_NOTHING_5 = 0x2F,
503 EZTR_ICON_NOTHING_6 = 0x30,
504 EZTR_ICON_NOTHING_7 = 0x31,
505 EZTR_ICON_HEROS_SHIELD = 0x32,
506 EZTR_ICON_MIRROR_SHIELD = 0x33,
507 EZTR_ICON_POWDER_KEG = 0x34,
508 EZTR_ICON_MAGIC_BEAN = 0x35,
509 EZTR_ICON_PICTOGRAPH_BOX = 0x36,
510 EZTR_ICON_KOKIRI_SWORD = 0x37,
511 EZTR_ICON_RAZOR_SWORD = 0x38,
512 EZTR_ICON_GILDED_SWORD = 0x39,
513 EZTR_ICON_FIERCE_DEITYS_SWORD = 0x3A,
514 EZTR_ICON_GREAT_FAIRYS_SWORD = 0x3B,
515 EZTR_ICON_SMALL_KEY = 0x3C,
516 EZTR_ICON_BOSS_KEY = 0x3D,
517 EZTR_ICON_DUNGEON_MAP = 0x3E,
518 EZTR_ICON_COMPASS = 0x3F,
519 EZTR_ICON_POWDER_KEG_1 = 0x40,
520 EZTR_ICON_HOOKSHOT = 0x41,
521 EZTR_ICON_LENS_OF_TRUTH = 0x42,
522 EZTR_ICON_PICTOGRAPH_BOX_1 = 0x43,
523 EZTR_ICON_FISHING_ROD = 0x44,
524 EZTR_ICON_NOTHING_8 = 0x45,
525 EZTR_ICON_NOTHING_9 = 0x46,
526 EZTR_ICON_NOTHING_10 = 0x47,
527 EZTR_ICON_NOTHING_11 = 0x48,
528 EZTR_ICON_NOTHING_12 = 0x49,
529 EZTR_ICON_NOTHING_13 = 0x4A,
530 EZTR_ICON_NOTHING_14 = 0x4B,
531 EZTR_ICON_OCARINA_OF_TIME = 0x4C,
532 EZTR_ICON_NOTHING_15 = 0x4D,
533 EZTR_ICON_NOTHING_16 = 0x4E,
534 EZTR_ICON_NOTHING_17 = 0x4F,
535 EZTR_ICON_BOMBERS_NOTEBOOK = 0x50,
536 EZTR_ICON_NOTHING_18 = 0x51,
537 EZTR_ICON_GOLD_SKULLTULA_TOKEN = 0x52,
538 EZTR_ICON_NOTHING_19 = 0x53,
539 EZTR_ICON_NOTHING_20 = 0x54,
540 EZTR_ICON_ODOLWAS_REMAINS = 0x55,
541 EZTR_ICON_GOHTS_REMAINS = 0x56,
542 EZTR_ICON_GYORGS_REMAINS = 0x57,
543 EZTR_ICON_TWINMOLDS_REMAINS = 0x58,
544 EZTR_ICON_RED_POTION = 0x59,
545 EZTR_ICON_EMPTY_BOTTLE = 0x5A,
546 EZTR_ICON_RED_POTION_1 = 0x5B,
547 EZTR_ICON_GREEN_POTION = 0x5C,
548 EZTR_ICON_BLUE_POTION = 0x5D,
549 EZTR_ICON_FAIRYS_SPIRIT = 0x5E,
550 EZTR_ICON_DEKU_PRINCESS = 0x5F,
551 EZTR_ICON_MILK = 0x60,
552 EZTR_ICON_MILK_HALF = 0x61,
553 EZTR_ICON_FISH = 0x62,
554 EZTR_ICON_BUG = 0x63,
555 EZTR_ICON_BLUE_FIRE = 0x64,
556 EZTR_ICON_POE = 0x65,
557 EZTR_ICON_BIG_POE = 0x66,
558 EZTR_ICON_SPRING_WATER = 0x67,
559 EZTR_ICON_HOT_SPRING_WATER = 0x68,
560 EZTR_ICON_ZORA_EGG = 0x69,
561 EZTR_ICON_GOLD_DUST = 0x6A,
562 EZTR_ICON_MUSHROOM = 0x6B,
563 EZTR_ICON_NOTHING_21 = 0x6C,
564 EZTR_ICON_NOTHING_22 = 0x6D,
565 EZTR_ICON_SEAHORSE = 0x6E,
566 EZTR_ICON_CHATEAU_ROMANI = 0x6F,
567 EZTR_ICON_HYLIAN_LOACH = 0x70,
568 EZTR_ICON_NOTHING_23 = 0x71,
569 EZTR_ICON_NOTHING_24 = 0x72,
570 EZTR_ICON_NOTHING_25 = 0x73,
571 EZTR_ICON_NOTHING_26 = 0x74,
572 EZTR_ICON_NOTHING_27 = 0x75,
573 EZTR_ICON_NOTHING_28 = 0x76,
574 EZTR_ICON_NOTHING_29 = 0x77,
575 EZTR_ICON_DEKU_MASK = 0x78,
576 EZTR_ICON_GORON_MASK = 0x79,
577 EZTR_ICON_ZORA_MASK = 0x7A,
578 EZTR_ICON_FIERCE_DEITY_MASK = 0x7B,
579 EZTR_ICON_MASK_OF_TRUTH = 0x7C,
580 EZTR_ICON_KAFEIS_MASK = 0x7D,
581 EZTR_ICON_ALL_NIGHT_MASK = 0x7E,
582 EZTR_ICON_BUNNY_HOOD = 0x7F,
583 EZTR_ICON_KEATON_MASK = 0x80,
584 EZTR_ICON_GARO_MASK = 0x81,
585 EZTR_ICON_ROMANI_MASK = 0x82,
586 EZTR_ICON_CIRCUS_LEADERS_MASK = 0x83,
587 EZTR_ICON_POSTMANS_HAT = 0x84,
588 EZTR_ICON_COUPLES_MASK = 0x85,
589 EZTR_ICON_GREAT_FAIRYS_MASK = 0x86,
590 EZTR_ICON_GIBDO_MASK = 0x87,
591 EZTR_ICON_DON_GEROS_MASK = 0x88,
592 EZTR_ICON_KAMAROS_MASK = 0x89,
593 EZTR_ICON_CAPTAINS_HAT = 0x8A,
594 EZTR_ICON_STONE_MASK = 0x8B,
595 EZTR_ICON_BREMEN_MASK = 0x8C,
596 EZTR_ICON_BLAST_MASK = 0x8D,
597 EZTR_ICON_MASK_OF_SCENTS = 0x8E,
598 EZTR_ICON_GIANTS_MASK = 0x8F,
599 EZTR_ICON_NOTHING_30 = 0x90,
600 EZTR_ICON_CHATEAU_ROMANI_1 = 0x91,
601 EZTR_ICON_MILK_1 = 0x92,
602 EZTR_ICON_GOLD_DUST_1 = 0x93,
603 EZTR_ICON_HYLIAN_LOACH_1 = 0x94,
604 EZTR_ICON_SEAHORSE_1 = 0x95,
605 EZTR_ICON_MOONS_TEAR = 0x96,
606 EZTR_ICON_TOWN_TITLE_DEED = 0x97,
607 EZTR_ICON_SWAMP_TITLE_DEED = 0x98,
608 EZTR_ICON_MOUNTAIN_TITLE_DEED = 0x99,
609 EZTR_ICON_OCEAN_TITLE_DEED = 0x9A,
610 EZTR_ICON_NOTHING_31 = 0x9B,
611 EZTR_ICON_NOTHING_32 = 0x9C,
612 EZTR_ICON_NOTHING_33 = 0x9D,
613 EZTR_ICON_NOTHING_34 = 0x9E,
614 EZTR_ICON_NOTHING_35 = 0x9F,
615 EZTR_ICON_ROOM_KEY = 0xA0,
616 EZTR_ICON_SPECIAL_DELIVERY_TO_MAMA = 0xA1,
617 EZTR_ICON_NOTHING_36 = 0xA2,
618 EZTR_ICON_NOTHING_37 = 0xA3,
619 EZTR_ICON_NOTHING_38 = 0xA4,
620 EZTR_ICON_NOTHING_39 = 0xA5,
621 EZTR_ICON_NOTHING_40 = 0xA6,
622 EZTR_ICON_NOTHING_41 = 0xA7,
623 EZTR_ICON_NOTHING_42 = 0xA8,
624 EZTR_ICON_NOTHING_43 = 0xA9,
625 EZTR_ICON_LETTER_TO_KAFEI = 0xAA,
626 EZTR_ICON_PENDANT_OF_MEMORIES = 0xAB,
627 EZTR_ICON_NOTHING_44 = 0xAC,
628 EZTR_ICON_NOTHING_45 = 0xAD,
629 EZTR_ICON_NOTHING_46 = 0xAE,
630 EZTR_ICON_NOTHING_47 = 0xAF,
631 EZTR_ICON_NOTHING_48 = 0xB0,
632 EZTR_ICON_NOTHING_49 = 0xB1,
633 EZTR_ICON_NOTHING_50 = 0xB2,
634 EZTR_ICON_TINGLES_MAP = 0xB3,
635 EZTR_ICON_TINGLES_MAP_1 = 0xB4,
636 EZTR_ICON_TINGLES_MAP_2 = 0xB5,
637 EZTR_ICON_TINGLES_MAP_3 = 0xB6,
638 EZTR_ICON_TINGLES_MAP_4 = 0xB7,
639 EZTR_ICON_TINGLES_MAP_5 = 0xB8,
640 EZTR_ICON_TINGLES_MAP_6 = 0xB9,
641 EZTR_ICON_NOTHING_51 = 0xBA,
642 EZTR_ICON_NOTHING_52 = 0xBB,
643 EZTR_ICON_NOTHING_53 = 0xBC,
644 EZTR_ICON_NOTHING_54 = 0xBD,
645 EZTR_ICON_NOTHING_55 = 0xBE,
646 EZTR_ICON_NOTHING_56 = 0xBF,
647 EZTR_ICON_NOTHING_57 = 0xC0,
648 EZTR_ICON_NOTHING_58 = 0xC1,
649 EZTR_ICON_NOTHING_59 = 0xC2,
650 EZTR_ICON_NOTHING_60 = 0xC3,
651 EZTR_ICON_NOTHING_61 = 0xC4,
652 EZTR_ICON_NOTHING_62 = 0xC5,
653 EZTR_ICON_NOTHING_63 = 0xC6,
654 EZTR_ICON_NOTHING_64 = 0xC7,
655 EZTR_ICON_NOTHING_65 = 0xC8,
656 EZTR_ICON_NOTHING_66 = 0xC9,
657 EZTR_ICON_NOTHING_67 = 0xCA,
658 EZTR_ICON_NOTHING_68 = 0xCB,
659 EZTR_ICON_NOTHING_69 = 0xCC,
660 EZTR_ICON_NOTHING_70 = 0xCD,
661 EZTR_ICON_NOTHING_71 = 0xCE,
662 EZTR_ICON_NOTHING_72 = 0xCF,
663 EZTR_ICON_NOTHING_73 = 0xD0,
664 EZTR_ICON_NOTHING_74 = 0xD1,
665 EZTR_ICON_NOTHING_75 = 0xD2,
666 EZTR_ICON_NOTHING_76 = 0xD3,
667 EZTR_ICON_NOTHING_77 = 0xD4,
668 EZTR_ICON_NOTHING_78 = 0xD5,
669 EZTR_ICON_NOTHING_79 = 0xD6,
670 EZTR_ICON_NOTHING_80 = 0xD7,
671 EZTR_ICON_SMALL_BLACK_LINE = 0xD8,
672 EZTR_ICON_SMALL_BLACK_LINE_1 = 0xD9,
673 EZTR_ICON_SMALL_BLACK_LINE_2 = 0xDA,
674 EZTR_ICON_SMALL_BLACK_LINE_3 = 0xDB,
675 EZTR_ICON_ANJU = 0xDC,
676 EZTR_ICON_KAFEI = 0xDD,
677 EZTR_ICON_CURIOSITY_SHOP_OWNER = 0xDE,
678 EZTR_ICON_BOMB_SHOP_OWNERS_MOTHER = 0xDF,
679 EZTR_ICON_ROMANI = 0xE0,
680 EZTR_ICON_CREMIA = 0xE1,
681 EZTR_ICON_MAYOR_DOTOUR = 0xE2,
682 EZTR_ICON_MADAME_AROMA = 0xE3,
683 EZTR_ICON_TOTO = 0xE4,
684 EZTR_ICON_GORMAN = 0xE5,
685 EZTR_ICON_POSTMAN = 0xE6,
686 EZTR_ICON_ROSA_SISTERS = 0xE7,
687 EZTR_ICON_TOILET_HAND = 0xE8,
688 EZTR_ICON_GRANNY = 0xE9,
689 EZTR_ICON_KAMARO = 0xEA,
690 EZTR_ICON_GROG = 0xEB,
691 EZTR_ICON_GORMAN_BROTHERS = 0xEC,
692 EZTR_ICON_SHIRO = 0xED,
693 EZTR_ICON_GURU_GURU = 0xEE,
694 EZTR_ICON_BOMBERS = 0xEF,
695 EZTR_ICON_EXCLAMATION_MARK = 0xF0,
696 EZTR_ICON_NOTHING_81 = 0xF1,
697 EZTR_ICON_NOTHING_82 = 0xF2,
698 EZTR_ICON_NOTHING_83 = 0xF3,
699 EZTR_ICON_NOTHING_84 = 0xF4,
700 EZTR_ICON_NOTHING_85 = 0xF5,
701 EZTR_ICON_NOTHING_86 = 0xF6,
702 EZTR_ICON_NOTHING_87 = 0xF7,
703 EZTR_ICON_NOTHING_88 = 0xF8,
704 EZTR_ICON_NOTHING_89 = 0xF9,
705 EZTR_ICON_NOTHING_90 = 0xFA,
706 EZTR_ICON_NOTHING_91 = 0xFB,
707 EZTR_ICON_NOTHING_92 = 0xFC,
708 EZTR_ICON_NOTHING_93 = 0xFD,
709 EZTR_ICON_NO_ICON = 0xFE,
710 EZTR_ICON_MAX = 0xFE
712
714
715
730#define EZTR_CC_COLOR_DEFAULT "\x00"
731
735#define EZTR_CC_COLOR_RED "\x01"
736
740#define EZTR_CC_COLOR_GREEN "\x02"
741
745#define EZTR_CC_COLOR_BLUE "\x03"
746
750#define EZTR_CC_COLOR_YELLOW "\x04"
751
755#define EZTR_CC_COLOR_LIGHTBLUE "\x05"
756
760#define EZTR_CC_COLOR_PINK "\x06"
761
765#define EZTR_CC_COLOR_SILVER "\x07"
766
770#define EZTR_CC_COLOR_ORANGE "\x08"
771
778#define EZTR_CC_TEXT_SPEED "\x0a"
779
783#define EZTR_CC_HS_BOAT_ARCHERY "\x0b"
784
789#define EZTR_CC_STRAY_FAIRIES "\x0c"
790
794#define EZTR_CC_TOKENS "\x0d"
795
799#define EZTR_CC_POINTS_TENS "\x0e"
800
804#define EZTR_CC_POINTS_THOUSANDS "\x0f"
805
812#define EZTR_CC_BOX_BREAK "\x10"
813
817#define EZTR_CC_NEWLINE "\x11"
818
825#define EZTR_CC_BOX_BREAK2 "\x12"
826
833#define EZTR_CC_CARRIAGE_RETURN "\x13"
834
841#define EZTR_CC_SHIFT "\x14"
842
851#define EZTR_CC_SHIFT_ARGC "\x14%c"
852
859#define EZTR_CC_CONTINUE "\x15"
860
864#define EZTR_CC_NAME "\x16"
865
869#define EZTR_CC_QUICKTEXT_ENABLE "\x17"
870
874#define EZTR_CC_QUICKTEXT_DISABLE "\x18"
875
882#define EZTR_CC_EVENT "\x19"
883
890#define EZTR_CC_PERSISTENT "\x1a"
891
898#define EZTR_CC_BOX_BREAK_DELAYED "\x1b"
899
908#define EZTR_CC_BOX_BREAK_DELAYED_ARGW "\x1b%w"
909
910
919#define EZTR_CC_FADE "\x1c"
920
932#define EZTR_CC_FADE_ARGW "\x1c%w"
933
940#define EZTR_CC_FADE_SKIPPABLE "\x1d"
941
950#define EZTR_CC_FADE_SKIPPABLE_ARGW "\x1d%w"
951
958#define EZTR_CC_SFX "\x1e"
959
968#define EZTR_CC_SFX_ARGW "\x1e%w"
969
976#define EZTR_CC_DELAY "\x1f"
977
986#define EZTR_CC_DELAY_ARGW "\x1f%w"
987
991#define EZTR_CC_BTN_A "\xb0"
992
996#define EZTR_CC_BTN_B "\xb1"
997
1001#define EZTR_CC_BTN_C "\xb2"
1002
1006#define EZTR_CC_BTN_L "\xb3"
1007
1011#define EZTR_CC_BTN_R "\xb4"
1012
1016#define EZTR_CC_BTN_Z "\xb5"
1017
1021#define EZTR_CC_BTN_CUP "\xb6"
1022
1026#define EZTR_CC_BTN_CDOWN "\xb7"
1027
1031#define EZTR_CC_BTN_CLEFT "\xb8"
1032
1036#define EZTR_CC_BTN_CRIGHT "\xb9"
1037
1041#define EZTR_CC_Z_TARGET "\xba"
1042
1046#define EZTR_CC_CONTROL_PAD "\xbb"
1047
1054#define EZTR_CC_END "\xbf"
1055
1062#define EZTR_CC_BACKGROUND "\xc1"
1063
1067#define EZTR_CC_TWO_CHOICE "\xc2"
1068
1072#define EZTR_CC_THREE_CHOICE "\xc3"
1073
1077#define EZTR_CC_TIMER_POSTMAN "\xc4"
1078
1082#define EZTR_CC_TIMER_MINIGAME_1 "\xc5"
1083
1087#define EZTR_CC_TIMER_2 "\xc6"
1088
1092#define EZTR_CC_TIMER_MOON_CRASH "\xc7"
1093
1097#define EZTR_CC_TIMER_MINIGAME_2 "\xc8"
1098
1102#define EZTR_CC_TIMER_ENV_HAZARD "\xc9"
1103
1107#define EZTR_CC_TIME "\xca"
1108
1112#define EZTR_CC_CHEST_FLAGS "\xcb"
1113
1117#define EZTR_CC_INPUT_BANK "\xcc"
1118
1122#define EZTR_CC_RUPEES_SELECTED "\xcd"
1123
1127#define EZTR_CC_RUPEES_TOTAL "\xce"
1128
1132#define EZTR_CC_TIME_UNTIL_MOON_CRASH "\xcf"
1133
1137#define EZTR_CC_INPUT_DOGGY_RACETRACK_BET "\xd0"
1138
1142#define EZTR_CC_INPUT_BOMBER_CODE "\xd1"
1143
1150#define EZTR_CC_PAUSE_MENU "\xd2"
1151
1155#define EZTR_CC_TIME_SPEED "\xd3"
1156
1160#define EZTR_CC_OWL_WARP "\xd4"
1161
1165#define EZTR_CC_INPUT_LOTTERY_CODE "\xd5"
1166
1173#define EZTR_CC_SPIDER_HOUSE_MASK_CODE "\xd6"
1174
1178#define EZTR_CC_STRAY_FAIRIES_LEFT_WOODFALL "\xd7"
1179
1183#define EZTR_CC_STRAY_FAIRIES_LEFT_SNOWHEAD "\xd8"
1184
1188#define EZTR_CC_STRAY_FAIRIES_LEFT_GREAT_BAY "\xd9"
1189
1193#define EZTR_CC_STRAY_FAIRIES_LEFT_STONE_TOWER "\xda"
1194
1198#define EZTR_CC_POINTS_BOAT_ARCHERY "\xdb"
1199
1203#define EZTR_CC_LOTTERY_CODE "\xdc"
1204
1208#define EZTR_CC_LOTTERY_CODE_GUESS "\xdd"
1209
1216#define EZTR_CC_HELD_ITEM_PRICE "\xde"
1217
1221#define EZTR_CC_BOMBER_CODE "\xdf"
1222
1229#define EZTR_CC_EVENT2 "\xe0"
1230
1234#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_1 "\xe1"
1235
1239#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_2 "\xe2"
1240
1244#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_3 "\xe3"
1245
1249#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_4 "\xe4"
1250
1254#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_5 "\xe5"
1255
1259#define EZTR_CC_SPIDER_HOUSE_MASK_CODE_6 "\xe6"
1260
1264#define EZTR_CC_HOURS_UNTIL_MOON_CRASH "\xe7"
1265
1269#define EZTR_CC_TIME_UNTIL_NEW_DAY "\xe8"
1270
1274#define EZTR_CC_HS_POINTS_BANK_RUPEES "\xf0"
1275
1279#define EZTR_CC_HS_POINTS_UNK_1 "\xf1"
1280
1284#define EZTR_CC_HS_POINTS_FISHING "\xf2"
1285
1289#define EZTR_CC_HS_TIME_BOAT_ARCHERY "\xf3"
1290
1294#define EZTR_CC_HS_TIME_HORSE_BACK_BALLOON "\xf4"
1295
1302#define EZTR_CC_HS_TIME_LOTTERY_GUESS "\xf5"
1303
1307#define EZTR_CC_HS_TOWN_SHOOTING_GALLERY "\xf6"
1308
1312#define EZTR_CC_HS_UNK_1 "\xf7"
1313
1317#define EZTR_CC_HS_UNK_3_LOWER "\xf8"
1318
1322#define EZTR_CC_HS_HORSE_BACK_BALLOON "\xf9"
1323
1327#define EZTR_CC_HS_DEKU_PLAYGROUND_DAY_1 "\xfa"
1328
1332#define EZTR_CC_HS_DEKU_PLAYGROUND_DAY_2 "\xfb"
1333
1337#define EZTR_CC_HS_DEKU_PLAYGROUND_DAY_3 "\xfc"
1338
1342#define EZTR_CC_DEKU_PLAYGROUND_NAME_DAY_1 "\xfd"
1343
1347#define EZTR_CC_DEKU_PLAYGROUND_NAME_DAY_2 "\xfe"
1348
1352#define EZTR_CC_DEKU_PLAYGROUND_NAME_DAY_3 "\xff"
1353
1355
1364
1365
1381EZTR_IMPORT(void EZTR_Basic_ReplaceBuffer(u16 textId, EZTR_MsgBuffer* buf, EZTR_MsgCallback callback));
1382
1413EZTR_IMPORT(void EZTR_Basic_ReplaceText(
1414 u16 textId,
1415 u8 text_box_type,
1416 u8 text_box_y_pos,
1417 u8 display_icon,
1418 u16 next_message_id,
1419 u16 first_item_rupees,
1420 u16 second_item_rupees,
1421 bool pipe_escape_bytes,
1422 char* content,
1423 EZTR_MsgCallback callback,
1424 ...
1426
1440EZTR_IMPORT(void EZTR_Basic_ReplaceTextEmpty(u16 textId, EZTR_MsgCallback callback));
1442
1449
1465
1495EZTR_IMPORT(void EZTR_Basic_AddCustomText(EZTR_CustomMsgHandle handle, u8 text_box_type, u8 text_box_y_pos, u8 display_icon,
1496 u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees, bool pipe_escape_bytes, char* content, EZTR_MsgCallback callback, ...));
1497
1511
1527
1557EZTR_IMPORT(void EZTR_Basic_ReplaceCustomText(EZTR_CustomMsgHandle handle, u8 text_box_type, u8 text_box_y_pos, u8 display_icon,
1558 u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees, bool pipe_escape_bytes, char* content, EZTR_MsgCallback callback, ...));
1559
1573
1575
1581
1582
1593
1606
1619EZTR_IMPORT(EZTR_MsgBuffer* EZTR_MsgBuffer_CreateFromStrN(char* src, size_t len));
1620
1630
1631// Copy:
1645EZTR_IMPORT(u32 EZTR_MsgBuffer_Copy(EZTR_MsgBuffer* dst, char* src));
1646
1659EZTR_IMPORT(u32 EZTR_MsgBuffer_NCopy(EZTR_MsgBuffer* dst, char* src, size_t len));
1660
1669EZTR_IMPORT(u32 EZTR_MsgBuffer_Len(EZTR_MsgBuffer* buf));
1670
1681
1697
1713EZTR_IMPORT(void EZTR_MsgBuffer_WriteHeader(EZTR_MsgBuffer* buf, u8 text_box_type, u8 text_box_y_pos, u8 display_icon,
1714 u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees));
1715
1727
1738EZTR_IMPORT(void EZTR_MsgBuffer_SetTextBoxType(EZTR_MsgBuffer* buf, u8 type));
1739
1751
1762EZTR_IMPORT(void EZTR_MsgBuffer_SetTextBoxYPos(EZTR_MsgBuffer* buf, u8 pos));
1763
1775
1787
1799
1810EZTR_IMPORT(void EZTR_MsgBuffer_SetNextMsg(EZTR_MsgBuffer* buf, u16 textId));
1811
1823
1834EZTR_IMPORT(void EZTR_MsgBuffer_SetFirstItemRupees(EZTR_MsgBuffer* buf, u16 val));
1835
1847
1859
1867EZTR_IMPORT(void EZTR_MsgBuffer_Print(EZTR_MsgBuffer* buf));
1868
1877
1886
1895
1905
1907
1908
1914
1915
1924EZTR_IMPORT(void EZTR_MsgSContent_SetEmpty(char* cont));
1925
1937EZTR_IMPORT(u32 EZTR_MsgSContent_Len(char* cont));
1938
1950EZTR_IMPORT(u32 EZTR_MsgSContent_NCopy(char* dst, char* src, size_t len));
1951
1964EZTR_IMPORT(u32 EZTR_MsgSContent_Copy(char* dst, char* src));
1965
1980EZTR_IMPORT(char* EZTR_MsgSContent_NCat(char* dst, char* src, size_t len));
1981
1995EZTR_IMPORT(char* EZTR_MsgSContent_Cat(char* dst, char* src));
1996
2015EZTR_IMPORT(s32 EZTR_MsgSContent_NCmp(char* str1, char* str2, size_t len));
2016
2037EZTR_IMPORT(s32 EZTR_MsgSContent_Cmp(char* str1, char* str2));
2038
2049EZTR_IMPORT(int EZTR_MsgSContent_Printf(const char* format, ...));
2050
2061EZTR_IMPORT(int EZTR_MsgSContent_PrintfLine(const char* format, ...));
2062
2077EZTR_IMPORT(int EZTR_MsgSContent_Sprintf(char* buffer, const char* format, ...));
2078
2091EZTR_IMPORT(int EZTR_MsgSContent_Snprintf(char* buffer, size_t count, const char* format, ...));
2092
2105EZTR_IMPORT(int EZTR_MsgSContent_Vsnprintf(char* buffer, size_t count, const char* format, va_list va));
2106
2117EZTR_IMPORT(int EZTR_MsgSContent_Vprintf(const char* format, va_list va));
2118
2130EZTR_IMPORT(int EZTR_MsgSContent_Fctprintf(void (*out)(char character, void* arg), void* arg, const char* format, ...));
2131
2143EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Printf(const char* format, ...));
2144
2156EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_PrintfLine(const char* format, ...));
2157
2173EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Sprintf(char* buffer, const char* format, ...));
2174
2188EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Snprintf(char* buffer, size_t count, const char* format, ...));
2189
2203EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Vsnprintf(char* buffer, size_t count, const char* format, va_list va));
2204
2216EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Vprintf(const char* format, va_list va));
2217
2231EZTR_IMPORT(int EZTR_MsgSContent_NoPipe_Fctprintf(void (*out)(char character, void* arg), void* arg, const char* format, ...));
2232
2234
2235#endif
void EZTR_Basic_ReplaceCustomText(EZTR_CustomMsgHandle handle, u8 text_box_type, u8 text_box_y_pos, u8 display_icon, u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees, bool pipe_escape_bytes, char *content, EZTR_MsgCallback callback,...)
Declare a replacement of a custom message by defining the header attributes and message content.
void EZTR_Basic_ReplaceCustomBuffer(EZTR_CustomMsgHandle handle, EZTR_MsgBuffer *buf, EZTR_MsgCallback callback)
Declare a replacement for a custom message by copying from a buffer defined by the user.
void EZTR_Basic_ReplaceCustomTextEmpty(EZTR_CustomMsgHandle handle, EZTR_MsgCallback callback)
Declare a replacement of a custom message, where the replacement message is empty.
void EZTR_Basic_AddCustomText(EZTR_CustomMsgHandle handle, u8 text_box_type, u8 text_box_y_pos, u8 display_icon, u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees, bool pipe_escape_bytes, char *content, EZTR_MsgCallback callback,...)
Declare a brand new (i.e: custom) message by defining the header attributes and message content.
void EZTR_Basic_AddCustomBuffer(EZTR_CustomMsgHandle handle, EZTR_MsgBuffer *buf, EZTR_MsgCallback callback)
Declare a brand new (i.e: custom) message by copying from a buffer defined by the user.
void EZTR_Basic_AddCustomTextEmpty(EZTR_CustomMsgHandle handle, EZTR_MsgCallback callback)
Declare a brand new (i.e: custom) message, where the replacement message is empty.
void EZTR_Basic_ReplaceTextEmpty(u16 textId, EZTR_MsgCallback callback)
Declare a replacement of a vanilla message, where the replacement message is empty.
void EZTR_Basic_ReplaceBuffer(u16 textId, EZTR_MsgBuffer *buf, EZTR_MsgCallback callback)
Declare a replacement of a vanilla message by copying from a buffer defined by the user.
void EZTR_Basic_ReplaceText(u16 textId, u8 text_box_type, u8 text_box_y_pos, u8 display_icon, u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees, bool pipe_escape_bytes, char *content, EZTR_MsgCallback callback,...)
Declare a replacement of a vanilla message by defining the header attributes and message content.
#define EZTR_MSG_HEADER_SIZE
The size of the message buffer's header region, in bytes.
Definition eztr_api.h:96
#define EZTR_MSG_BUFFER_SIZE
The the full size of message buffer, in bytes.
Definition eztr_api.h:81
#define EZTR_MSG_BUFFER_WIDE_SIZE
The maximum length of buffer in two-byte characters (wchar).
Definition eztr_api.h:88
#define EZTR_MSG_CONTENT_SIZE
The size of the message buffer's content region, in bytes.
Definition eztr_api.h:103
u16 EZTR_MsgBuffer_GetNextMsg(EZTR_MsgBuffer *buf)
Retrieves the next_message_id from a message buffer's header.
u32 EZTR_MsgBuffer_Copy(EZTR_MsgBuffer *dst, char *src)
Copies data from src into the message buffer dst.
EZTR_MsgBuffer * EZTR_MsgBuffer_CreateFromStr(char *src)
Creates a new message buffer object on the heap, and copies src into it.
char * EZTR_MsgBuffer_GetContentPtr(EZTR_MsgBuffer *buf)
Gets a pointer to the beginning of the content region for a desired message buffer.
void EZTR_MsgBuffer_Destroy(EZTR_MsgBuffer *buf)
Frees/destroys a message buffer.
EZTR_MsgBuffer * EZTR_MsgBuffer_Create()
Creates a new message buffer object on the heap.
u32 EZTR_MsgBuffer_ContentLen(EZTR_MsgBuffer *buf)
Gets the size of the message buffer's content region, in bytes.
void EZTR_MsgBuffer_SetNextMsg(EZTR_MsgBuffer *buf, u16 textId)
Sets the next_message_id of the message buffer's header.
u8 EZTR_MsgBuffer_GetTextBoxDisplayIcon(EZTR_MsgBuffer *buf)
Retrieves the display_icon from a message buffer's header.
void EZTR_MsgBuffer_PrintCCode(EZTR_MsgBuffer *buf)
Prints the contents of a message buffer to the console, formatted as a EZTR_Basic_ReplaceText call.
void EZTR_MsgBuffer_SetTextBoxType(EZTR_MsgBuffer *buf, u8 type)
Sets the text_box_type of the message buffer's header.
void EZTR_MsgBuffer_WriteHeader(EZTR_MsgBuffer *buf, u8 text_box_type, u8 text_box_y_pos, u8 display_icon, u16 next_message_id, u16 first_item_rupees, u16 second_item_rupees)
void EZTR_MsgBuffer_PrintFull(EZTR_MsgBuffer *buf)
Prints the contents of a message buffer to the console.
u8 EZTR_MsgBuffer_GetTextBoxType(EZTR_MsgBuffer *buf)
Retrieves the text_box_type from a message buffer's header.
void EZTR_MsgBuffer_SetSecondItemRupees(EZTR_MsgBuffer *buf, u16 val)
Sets the second_item_rupees of the message buffer's header.
void EZTR_MsgBuffer_SetFirstItemRupees(EZTR_MsgBuffer *buf, u16 val)
Sets the first_item_rupees of the message buffer's header.
u32 EZTR_MsgBuffer_Len(EZTR_MsgBuffer *buf)
Gets the size of the message buffer's stored data, in bytes.
EZTR_MsgBuffer * EZTR_MsgBuffer_CreateFromStrN(char *src, size_t len)
Creates a new message buffer object on the heap, and copies src into it for up to len bytes.
u16 EZTR_MsgBuffer_GetSecondItemRupees(EZTR_MsgBuffer *buf)
Retrieves the second_item_rupees from a message buffer's header.
u32 EZTR_MsgBuffer_NCopy(EZTR_MsgBuffer *dst, char *src, size_t len)
Copies data from src into the message buffer dst, up to len bytes.
void EZTR_MsgBuffer_PrintFullCCode(EZTR_MsgBuffer *buf)
Prints the contents of a message buffer to the console, formatted as a EZTR_Basic_ReplaceText call.
void EZTR_MsgBuffer_SetTextBoxYPos(EZTR_MsgBuffer *buf, u8 pos)
Sets the text_box_y_pos of the message buffer's header.
u8 EZTR_MsgBuffer_GetTextBoxYPos(EZTR_MsgBuffer *buf)
Retrieves the text_box_y_pos from a message buffer's header.
void EZTR_MsgBuffer_SetTextBoxDisplayIcon(EZTR_MsgBuffer *buf, u8 icon)
Sets the display_icon of the message buffer's header.
void EZTR_MsgBuffer_WriteDefaultHeader(EZTR_MsgBuffer *buf)
Sets a message buffer's header to default values.
u16 EZTR_MsgBuffer_GetFirstItemRupees(EZTR_MsgBuffer *buf)
Retrieves the first_item_rupees from a message buffer's header.
void EZTR_MsgBuffer_Print(EZTR_MsgBuffer *buf)
Prints the contents of a message buffer to the console.
int EZTR_MsgSContent_NoPipe_Snprintf(char *buffer, size_t count, const char *format,...)
A modified version of printf, specially designed to handle message content. This version does not use...
int EZTR_MsgSContent_NoPipe_Vsnprintf(char *buffer, size_t count, const char *format, va_list va)
A modified version of printf, specially designed to handle message content. This version does not use...
int EZTR_MsgSContent_Fctprintf(void(*out)(char character, void *arg), void *arg, const char *format,...)
A modified version of printf, specially designed to handle message content.
int EZTR_MsgSContent_Printf(const char *format,...)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
int EZTR_MsgSContent_NoPipe_Printf(const char *format,...)
A modified version of printf, specially designed to handle message content. This version does not use...
u32 EZTR_MsgSContent_Copy(char *dst, char *src)
Copies message content from src into the dst.
char * EZTR_MsgSContent_Cat(char *dst, char *src)
Copies the message content of src onto the end of dst.
s32 EZTR_MsgSContent_NCmp(char *str1, char *str2, size_t len)
Compares up to len bytes of two message content strings.
int EZTR_MsgSContent_Vsnprintf(char *buffer, size_t count, const char *format, va_list va)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
u32 EZTR_MsgSContent_NCopy(char *dst, char *src, size_t len)
Copies message content from src into the dst, up to len bytes.
void EZTR_MsgSContent_SetEmpty(char *cont)
Sets the message message content as empty.
int EZTR_MsgSContent_Vprintf(const char *format, va_list va)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
char * EZTR_MsgSContent_NCat(char *dst, char *src, size_t len)
Copies the message content of src onto the end of dst, up to len bytes from src.
int EZTR_MsgSContent_NoPipe_Vprintf(const char *format, va_list va)
A modified version of printf, specially designed to handle message content. This version does not use...
int EZTR_MsgSContent_NoPipe_Fctprintf(void(*out)(char character, void *arg), void *arg, const char *format,...)
A modified version of printf, specially designed to handle message content. This version does not use...
int EZTR_MsgSContent_Snprintf(char *buffer, size_t count, const char *format,...)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
int EZTR_MsgSContent_PrintfLine(const char *format,...)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
int EZTR_MsgSContent_NoPipe_Sprintf(char *buffer, const char *format,...)
A modified version of printf, specially designed to handle message content. This version does not use...
int EZTR_MsgSContent_NoPipe_PrintfLine(const char *format,...)
A modified version of printf, specially designed to handle message content. This version does not use...
s32 EZTR_MsgSContent_Cmp(char *str1, char *str2)
Compares two message content strings.
int EZTR_MsgSContent_Sprintf(char *buffer, const char *format,...)
A modified version of printf, specially designed to handle message content. This version uses pipe-es...
u32 EZTR_MsgSContent_Len(char *cont)
Gets the length of the a message content string in bytes, not counting the '\xBF' termination charact...
EZTR_TextBoxIcon
Used in the message header to indicate a display icon for the message.
Definition eztr_api.h:454
EZTR_TextBoxType
Used in the message header to indicate the style of textbox used for the message.
Definition eztr_api.h:425
void(* EZTR_MsgCallback)(EZTR_MsgBuffer *buf, u16 textId, PlayState *play)
The function pointer type for message callbacks.
Definition eztr_api.h:416
u16(* EZTR_CustomMsgHandle)(_EZTR_CustomMsgHandleSetter *setter)
The type declaration for custom message handle.
Definition eztr_api.h:408
The message buffer, with the header represented as its individual members.
Definition eztr_api.h:370
The message buffer, but with the header and content regions defined as seperate arrays.
Definition eztr_api.h:353
The message buffers type as defined in the Majora's Mask decompilation.
Definition eztr_api.h:340
A union of the three MsgBuffer structs, and the primary type for interacting with message data.
Definition eztr_api.h:393