mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 23:48:08 -05:00
add CCMenuItem::activate fix
This commit is contained in:
parent
d90bfdd1d1
commit
005d245351
1 changed files with 12 additions and 0 deletions
12
loader/src/hooks/CCMenuItemActivateFix.cpp
Normal file
12
loader/src/hooks/CCMenuItemActivateFix.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <Geode/Geode.hpp>
|
||||
#include <Geode/modify/CCMenuItem.hpp>
|
||||
|
||||
using namespace geode::prelude;
|
||||
|
||||
class $modify(CCMenuItem) {
|
||||
void activate() {
|
||||
this->retain();
|
||||
CCMenuItem::activate();
|
||||
this->release();
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue