Skip to content

Commit 7435928

Browse files
committed
Changed the name of the trampoline used for hooking marioStMain
1 parent 1a558ce commit 7435928

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ttyd-tools/rel/include/mod.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Mod
2222
uint32_t setIndexWarpEntrance(void *, uint32_t);
2323

2424
private:
25-
void (*mPFN_makeKey_trampoline)() = nullptr;
25+
void (*mPFN_marioStMain_trampoline)() = nullptr;
2626
void (*mPFN_BattlePadManager_trampoline)() = nullptr;
2727
int32_t (*mPFN_winRootMain_trampoline)(void *) = nullptr;
2828
bool (*mPFN_pouchRemoveItemIndex_trampoline)(int16_t, uint32_t) = nullptr;

ttyd-tools/rel/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ void Mod::run()
712712
}
713713

714714
// Call original function
715-
mPFN_makeKey_trampoline();
715+
mPFN_marioStMain_trampoline();
716716
}
717717

718718
}

ttyd-tools/rel/source/mod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void Mod::init()
4040
initAddressOverwrites();
4141
actionCommandsTimingsInit();
4242

43-
mPFN_makeKey_trampoline = patch::hookFunction(ttyd::mariost::marioStMain, []()
43+
mPFN_marioStMain_trampoline = patch::hookFunction(ttyd::mariost::marioStMain, []()
4444
{
4545
gMod->run();
4646
});

0 commit comments

Comments
 (0)