// // cocos2d::CCDirector::setNextScene from 0x100175730 to 0x100175848 (280 bytes) // // 1 xrefs: // > cocos2d::CCDirector::drawScene @ 0x100175654 // // 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::setNextScene(cocos2d::CCDirector *a1) { cocos2d::CCScene *m_pRunningScene; // x20 _BOOL4 v3; // w21 cocos2d::CCScene *m_pNextScene; // x0 cocos2d::CCScene *v5; // x0 cocos2d::CCScene *v6; // x0 m_pRunningScene = a1->m_pRunningScene; if ( m_pRunningScene ) v3 = __dynamic_cast( a1->m_pRunningScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) == nullptr; else v3 = 1; m_pNextScene = a1->m_pNextScene; if ( !m_pNextScene || !__dynamic_cast( m_pNextScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { if ( !m_pRunningScene ) goto LABEL_12; ((void (__fastcall *)(cocos2d::CCScene *))m_pRunningScene->onExitTransitionDidStart)(m_pRunningScene); ((void (__fastcall *)(cocos2d::CCScene *))a1->m_pRunningScene->onExit)(a1->m_pRunningScene); m_pRunningScene = a1->m_pRunningScene; if ( a1->m_bSendCleanupToScene ) { if ( !m_pRunningScene ) goto LABEL_12; ((void (__fastcall *)(cocos2d::CCScene *))m_pRunningScene->cleanup)(a1->m_pRunningScene); m_pRunningScene = a1->m_pRunningScene; } } if ( m_pRunningScene ) cocos2d::CCObject::release(m_pRunningScene); LABEL_12: v5 = a1->m_pNextScene; a1->m_pRunningScene = v5; cocos2d::CCObject::retain(v5); a1->m_pNextScene = nullptr; if ( v3 ) { v6 = a1->m_pRunningScene; if ( v6 ) { ((void (__fastcall *)(cocos2d::CCScene *))v6->onEnter)(v6); ((void (__fastcall *)(cocos2d::CCScene *))a1->m_pRunningScene->onEnterTransitionDidFinish)(a1->m_pRunningScene); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source