Merge branch 'main' into new-index-but-better

This commit is contained in:
HJfod 2024-03-25 15:18:17 +02:00
commit 575a7cb7e0

View file

@ -484,6 +484,7 @@ void GEODE_DLL geode::cocos::handleTouchPriorityWith(cocos2d::CCNode* node, int
}
}
void GEODE_DLL geode::cocos::handleTouchPriority(cocos2d::CCNode* node, bool force) {
node->retain();
Loader::get()->queueInMainThread([node, force]() {
if (auto delegate = typeinfo_cast<CCTouchDelegate*>(node)) {
if (auto handler = CCTouchDispatcher::get()->findHandler(delegate)) {
@ -491,6 +492,7 @@ void GEODE_DLL geode::cocos::handleTouchPriority(cocos2d::CCNode* node, bool for
}
}
handleTouchPriorityWith(node, 0, force);
node->release();
});
}