Skip to content

Commit

Permalink
more messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettDev committed Dec 1, 2024
1 parent 9ad4f4e commit 6d25c9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>(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);
}
Expand Down Expand Up @@ -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<cocos2d::CCTouch*>(touches->anyObject());
const auto touchPos = touch->getLocation();

Expand Down

0 comments on commit 6d25c9f

Please sign in to comment.