//
// GJColorSetupLayer::onClose from 0x497eb6 to 0x497eea (52 bytes)
//
// 2 xrefs:
// > GJColorSetupLayer::keyBackClicked @ 0x497eec
// > GJColorSetupLayer::onColor @ 0x497fc8
//
// 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 GJColorSetupLayer::onClose(GJColorSetupLayer *a1, cocos2d::CCObject *a2)
{
ColorSetupDelegate *m_delegate; // r0
m_delegate = a1->m_delegate;
if ( m_delegate && a1->m_colorID > 0 )
((void (__fastcall *)(ColorSetupDelegate *))m_delegate->colorSetupClosed)(m_delegate);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}