geode/loader/src/hooks/CCMenuItemActivateFix.cpp

21 lines
457 B
C++
Raw Normal View History

2024-03-10 19:37:03 -04:00
#include <Geode/Geode.hpp>
#include <Geode/modify/CCMenuItem.hpp>
2024-03-15 21:26:20 -04:00
#include <Geode/modify/CCMenu.hpp>
2024-03-10 19:37:03 -04:00
using namespace geode::prelude;
class $modify(CCMenuItem) {
void activate() {
this->retain();
CCMenuItem::activate();
this->release();
}
2024-03-15 21:26:20 -04:00
};
class $modify(CCMenu) {
void ccTouchEnded(CCTouch* touch, CCEvent* event) {
this->retain();
CCMenu::ccTouchEnded(touch, event);
this->release();
}
2024-03-10 19:37:03 -04:00
};