//
// cocos2d::CCDirector::willSwitchToScene from 0x5c3604 to 0x5c362c (40 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::pushScene @ 0x5c3672
// > cocos2d::CCDirector::replaceScene @ 0x5c371c
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x5d0e88
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x5d2162
//
// 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 cocos2d::CCDirector::willSwitchToScene(cocos2d::CCDirector *a1, cocos2d::CCScene *a2)
{
cocos2d::CCSceneDelegate *m_pAppDelegate; // r0
cocos2d::CCSceneDelegate *m_pDelegate; // r0
if ( !a1->m_bDontCallWillSwitch )
{
m_pAppDelegate = a1->m_pAppDelegate;
if ( m_pAppDelegate )
((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pAppDelegate->willSwitchToScene)(m_pAppDelegate);
m_pDelegate = a2->m_pDelegate;
if ( m_pDelegate )
((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pDelegate->willSwitchToScene)(m_pDelegate);
}
}