//
// cocos2d::CCDirector::willSwitchToScene from 0x1800c02a0 to 0x1800c02e0 (64 bytes)
//
// 5 xrefs:
// > cocos2d::CCTransitionScene::hideOutShowIn @ 0x180054691
// > cocos2d::CCTransitionMoveInL::onEnter @ 0x180055992
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b9438
// > ??> @ 0x1801b9444
//
// 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 *this, struct cocos2d::CCScene *a2)
{
cocos2d::CCSceneDelegate *m_pAppDelegate; // rcx
cocos2d::CCSceneDelegate *m_pDelegate; // rcx
if ( !this->m_bDontCallWillSwitch )
{
m_pAppDelegate = this->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);
}
}