// // cocos2d::CCDirector::setNextScene from 0x1800bf710 to 0x1800bf814 (260 bytes) // // 3 xrefs: // > cocos2d::CCDirector::drawScene @ 0x1800be421 // > @ 0x1801438a8 // > @ 0x1801b9330 // // 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 *this) { __int64 v2; // rdi cocos2d::CCScene *m_pRunningScene; // rcx cocos2d::CCScene *v4; // rcx cocos2d::CCScene *v5; // rcx cocos2d::CCScene *m_pNextScene; // rcx cocos2d::CCScene *v7; // rcx v2 = _RTDynamicCast( this->m_pRunningScene, 0, &cocos2d::CCScene `RTTI Type Descriptor', &cocos2d::CCTransitionScene `RTTI Type Descriptor', 0); if ( !_RTDynamicCast( this->m_pNextScene, 0, &cocos2d::CCScene `RTTI Type Descriptor', &cocos2d::CCTransitionScene `RTTI Type Descriptor', 0) ) { m_pRunningScene = this->m_pRunningScene; if ( m_pRunningScene ) { ((void (__fastcall *)(cocos2d::CCScene *))m_pRunningScene->onExitTransitionDidStart)(m_pRunningScene); ((void (__fastcall *)(cocos2d::CCScene *))this->m_pRunningScene->onExit)(this->m_pRunningScene); } if ( this->m_bSendCleanupToScene ) { v4 = this->m_pRunningScene; if ( v4 ) ((void (__fastcall *)(cocos2d::CCScene *))v4->cleanup)(v4); } } v5 = this->m_pRunningScene; if ( v5 ) cocos2d::CCObject::release(v5); m_pNextScene = this->m_pNextScene; this->m_pRunningScene = m_pNextScene; cocos2d::CCObject::retain(m_pNextScene); this->m_pNextScene = nullptr; if ( !v2 ) { v7 = this->m_pRunningScene; if ( v7 ) { ((void (__fastcall *)(cocos2d::CCScene *))v7->onEnter)(v7); ((void (__fastcall *)(cocos2d::CCScene *))this->m_pRunningScene->onEnterTransitionDidFinish)(this->m_pRunningScene); } } }