Skip to content

Commit

Permalink
update manualhooks page
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Jan 19, 2024
1 parent 8df1260 commit 8d0ea48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/manualhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void MenuLayer_onNewgrounds(MenuLayer* self, CCObject* sender) {
}

$execute {
Mod::get()->addHook(
Mod::get()->hook(
reinterpret_cast<void*>(geode::base::get() + 0x191E90), // address
&MenuLayer_onNewgrounds, // detour
"MenuLayer::onNewgrounds", // display name, shows up on the console
Expand All @@ -41,7 +41,7 @@ void myDrawCircle(const cocos2d::CCPoint& center, float radius, float angle, uns
}
$execute {
Mod::get()->addHook(
Mod::get()->hook(
reinterpret_cast<void*>(
// All of this is to get the address of ccDrawCircle
geode::addresser::getNonVirtual(
Expand Down

0 comments on commit 8d0ea48

Please sign in to comment.