//
// cocos2d::CCDirector::willSwitchToScene from 0x100175ea4 to 0x100175efc (88 bytes)
//
// 2 xrefs:
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x1001cdd84
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x1001cdebc
//
// 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 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 *, cocos2d::CCScene *))m_pAppDelegate->willSwitchToScene)(
m_pAppDelegate,
a2);
m_pDelegate = a2->m_pDelegate;
if ( m_pDelegate )
((void (__fastcall *)(cocos2d::CCSceneDelegate *))m_pDelegate->willSwitchToScene)(m_pDelegate);
}
}