//
// PromoInterstitial::onClose from 0x7eaccc to 0x7ead3c (112 bytes)
//
// 5 xrefs:
// > PromoInterstitial::keyBackClicked @ 0x7ead6c
// > PromoInterstitial::onClick @ 0x7eadb8
// > ??> @ 0x36a38
// > PromoInterstitial::setup @ 0x7eb1f0
// > ??> @ 0x1229ac8
//
// 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 PromoInterstitial::onClose(PromoInterstitial *a1, cocos2d::CCObject *a2)
{
GameManager::sharedState()->m_unkBool7 = 0;
if ( a1->m_showAdBanner && GameManager::sharedState()->m_playLayer )
{
AdToolbox::enableBanner();
a1->removeFromParentAndCleanup(a1, 1);
}
else
{
a1->removeFromParentAndCleanup(a1, 1);
}
}