Details

Last Updated
last week
First Uploaded
last week
Downloads
2.5K
Likes
4
Size
125KB
Dependency string
danielryb-Message_Hooks-1.0.0
Dependants

Categories

Message Hooks

This is a dependency mod. It provides hooks inside Message_Update and Message_DrawMain for use in other mods.

Features

This mod provides hooks with following signatures:

mh_on_Message_Update(PlayState* play)
mh_on_Message_DrawMain(PlayState* play, Gfx** gfxP)

each hook is accompanied with an import for setting a flag which makes the function return early before it dives into the vanilla switch clause:

void mh_Message_Update_set_return_flag(void);
void mh_Message_DrawMain_set_return_flag(void);

Usage example

RECOMP_IMPORT("mm_recomp_message_hooks", void mh_Message_Update_set_return_flag(void));
RECOMP_IMPORT("mm_recomp_message_hooks", void mh_Message_DrawMain_set_return_flag(void));

RECOMP_CALLBACK("mm_recomp_message_hooks", mh_on_Message_Update) void on_Message_Update(PlayState* play) {
    // ...
}

RECOMP_CALLBACK("mm_recomp_message_hooks", mh_on_Message_DrawMain) void on_Message_DrawMain(PlayState* play, Gfx** gfxP) {
    // ...
}
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.