From 6d25c9f8f6d93bbe776f2737d32f11a9d8e8f185 Mon Sep 17 00:00:00 2001 From: SpaghettDev <37266659+SpaghettDev@users.noreply.github.com> Date: Sun, 1 Dec 2024 01:36:38 -0500 Subject: [PATCH] more messages --- src/macos.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/macos.mm b/src/macos.mm index 25d3914..f4e35db 100644 --- a/src/macos.mm +++ b/src/macos.mm @@ -40,7 +40,10 @@ void empty() {} void createObjcHook(std::string_view className, std::string_view funcName, Func function) { if (auto res = geode::ObjcHook::create(className, funcName, function, &empty); res.isOk()) + { static_cast(geode::Mod::get()->claimHook(res.unwrap())); + geode::log::debug("Objective C Hook created successfully '{} {}'", className, funcName); + } else geode::log::error("Failed to create Objective C Hook '{} {}'", className, funcName); } @@ -211,6 +214,8 @@ void touches(cocos2d::CCSet* touches, cocos2d::CCEvent* event, unsigned int type if (!g_selectedInput) return cocos2d::CCTouchDispatcher::touches(touches, event, type); + geode::log::debug("button clicked"); + auto* touch = static_cast(touches->anyObject()); const auto touchPos = touch->getLocation();