// // cocos2d::CCDirector::setNextScene from 0xad7260 to 0xad73d4 (372 bytes) // // 2 xrefs: // > cocos2d::CCDirector::drawScene @ 0xad75d4 // > @ 0xb2218 // // 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::setNextScene(cocos2d::CCDirector *a1) { cocos2d::CCScene *m_pRunningScene; // x20 cocos2d::CCScene *m_pNextScene; // x0 int v4; // w22 cocos2d::CCScene *v5; // x21 cocos2d::CCScene *v6; // x0 cocos2d::CCScene *v7; // x0 m_pRunningScene = a1->m_pRunningScene; if ( m_pRunningScene ) { if ( _dynamic_cast( a1->m_pRunningScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { m_pNextScene = a1->m_pNextScene; v4 = 1; if ( m_pNextScene ) { v4 = 1; if ( _dynamic_cast( m_pNextScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { goto LABEL_5; } } goto LABEL_13; } v5 = a1->m_pNextScene; if ( !v5 ) { v4 = 0; LABEL_13: m_pRunningScene->onExitTransitionDidStart(m_pRunningScene); a1->m_pRunningScene->onExit(a1->m_pRunningScene); if ( a1->m_bSendCleanupToScene ) { v7 = a1->m_pRunningScene; if ( !v7 ) goto LABEL_6; v7->cleanup(v7); } m_pRunningScene = a1->m_pRunningScene; if ( !m_pRunningScene ) goto LABEL_6; LABEL_5: cocos2d::CCObject::release(m_pRunningScene); LABEL_6: v5 = a1->m_pNextScene; goto LABEL_7; } } else { v5 = a1->m_pNextScene; if ( !v5 ) { v4 = 0; goto LABEL_7; } } v4 = 0; if ( !_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { if ( m_pRunningScene ) goto LABEL_13; LABEL_7: a1->m_pRunningScene = v5; cocos2d::CCObject::retain(v5); a1->m_pNextScene = nullptr; if ( v4 ) return; goto LABEL_8; } if ( m_pRunningScene ) goto LABEL_5; a1->m_pRunningScene = v5; cocos2d::CCObject::retain(v5); a1->m_pNextScene = nullptr; LABEL_8: v6 = a1->m_pRunningScene; if ( v6 ) { v6->onEnter(v6); a1->m_pRunningScene->onEnterTransitionDidFinish(a1->m_pRunningScene); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source