geode/loader/src/hooks/CCMenuItemActivateFix.cpp
2024-03-16 02:26:20 +01:00

21 lines
No EOL
457 B
C++

#include <Geode/Geode.hpp>
#include <Geode/modify/CCMenuItem.hpp>
#include <Geode/modify/CCMenu.hpp>
using namespace geode::prelude;
class $modify(CCMenuItem) {
void activate() {
this->retain();
CCMenuItem::activate();
this->release();
}
};
class $modify(CCMenu) {
void ccTouchEnded(CCTouch* touch, CCEvent* event) {
this->retain();
CCMenu::ccTouchEnded(touch, event);
this->release();
}
};