mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 04:06:58 -05:00
21 lines
No EOL
457 B
C++
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();
|
|
}
|
|
}; |