//
// InfoLayer::onClose from 0x7e118c to 0x7e1208 (124 bytes)
//
// 5 xrefs:
// > InfoLayer::keyBackClicked @ 0x7e120c
// > InfoLayer::reloadWindow @ 0x7e5b90
// > ??> @ 0xc9120
// > InfoLayer::init @ 0x7e3f3c
// > ??> @ 0x122efd0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void InfoLayer::onClose(InfoLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
if ( a1->m_list )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = v3->getTouchDispatcher(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);
a1->m_list->removeMeAndCleanup(a1->m_list);
a1->m_list = nullptr;
}
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}