//
// cocos2d::CCDirector::willSwitchToScene from 0xad6c28 to 0xad6c74 (76 bytes)
//
// 5 xrefs:
// > cocos2d::CCDirector::pushScene @ 0xad6cfc
// > cocos2d::CCDirector::replaceScene @ 0xad6e1c
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0xaed408
// > cocos2d::CCTransitionMoveInL::onEnter @ 0xaef43c
// > ??> @ 0x2abd0
//
// 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; // x0
cocos2d::CCSceneDelegate *m_pDelegate; // x0
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);
}
}