//
// VideoOptionsLayer::onClose from 0x1007a0310 to 0x1007a0361 (81 bytes)
//
// 2 xrefs:
// > VideoOptionsLayer::init @ 0x10079fb8a
// > VideoOptionsLayer::init @ 0x10079fcc2
//
// 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 __fastcall VideoOptionsLayer::onClose(VideoOptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
if ( GameManager::sharedState()->m_menuLayer )
{
v2 = GameManager::sharedState();
MenuLayer::videoOptionsClosed(v2->m_menuLayer);
}
((void (__fastcall *)(VideoOptionsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(VideoOptionsLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}