From 8d0ea48af8d210e1d11617f321f9040094a4b9ff Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Fri, 19 Jan 2024 11:50:51 -0300 Subject: [PATCH] update manualhooks page --- tutorials/manualhooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/manualhooks.md b/tutorials/manualhooks.md index aa15b65..29d8f9a 100644 --- a/tutorials/manualhooks.md +++ b/tutorials/manualhooks.md @@ -20,7 +20,7 @@ void MenuLayer_onNewgrounds(MenuLayer* self, CCObject* sender) { } $execute { - Mod::get()->addHook( + Mod::get()->hook( reinterpret_cast(geode::base::get() + 0x191E90), // address &MenuLayer_onNewgrounds, // detour "MenuLayer::onNewgrounds", // display name, shows up on the console @@ -41,7 +41,7 @@ void myDrawCircle(const cocos2d::CCPoint& center, float radius, float angle, uns } $execute { - Mod::get()->addHook( + Mod::get()->hook( reinterpret_cast( // All of this is to get the address of ccDrawCircle geode::addresser::getNonVirtual(