// // cocos2d::CCTransitionCrossFade::onEnter from 0xaf0124 to 0xaf04a0 (892 bytes) // // 2 xrefs: // > @ 0xa8360 // > @ 0x120ad70 // // 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::CCTransitionCrossFade::onEnter(cocos2d::CCTransitionCrossFade *a1) { cocos2d::CCDirector *v2; // x0 cocos2d::CCLayerColor *v3; // x24 int v4; // w2 __int64 v5; // x0 cocos2d::CCRenderTexture *v6; // x19 __int64 v7; // x20 void (__fastcall *v8)(__int64, cocos2d::CCPoint *); // x27 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 int v11; // w2 cocos2d::CCRenderTexture *v12; // x20 __int64 v13; // x27 void (__fastcall *v14)(__int64, cocos2d::CCPoint *); // x28 void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x0 cocos2d::CCSequence *v21; // x21 __int64 v22; // x19 __int64 v23; // x0 cocos2d::CCNode *v24; // x0 cocos2d::CCSequence *v25; // [xsp+78h] [xbp+78h] float v26; // [xsp+88h] [xbp+88h] float v27; // [xsp+8Ch] [xbp+8Ch] cocos2d::CCPoint v28; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCTransitionScene::onEnter(a1); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = cocos2d::CCLayerColor::create(); v5 = cocos2d::CCRenderTexture::create((cocos2d::CCRenderTexture *)(unsigned int)(int)v26, (int)v27, v4); v6 = (cocos2d::CCRenderTexture *)v5; if ( v5 ) { v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 880LL))(v5); v8 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v7 + 280LL); cocos2d::CCPoint::CCPoint(&v28, 0.5, 0.5); v8(v7, &v28); setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v28, v26 * 0.5, v27 * 0.5); setPosition(v6, &v28); setAnchorPoint = v6->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v28, 0.5, 0.5); setAnchorPoint(v6, &v28); cocos2d::CCRenderTexture::begin(v6); (*((void (__fastcall **)(cocos2d::CCTransitionCrossFade_vtbl *))a1[1].copyWithZone + 92))(a1[1].__vftable); cocos2d::CCRenderTexture::end(v6); v12 = (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::create( (cocos2d::CCRenderTexture *)(unsigned int)(int)v26, (int)v27, v11); v13 = (__int64)v12->getSprite(v12); v14 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v13 + 280LL); cocos2d::CCPoint::CCPoint(&v28, 0.5, 0.5); v14(v13, &v28); v15 = v12->setPosition; cocos2d::CCPoint::CCPoint(&v28, v26 * 0.5, v27 * 0.5); v15(v12, &v28); v16 = v12->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v28, 0.5, 0.5); v16(v12, &v28); cocos2d::CCRenderTexture::begin(v12); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 736LL))(*(_QWORD *)&a1[1].m_uID); cocos2d::CCRenderTexture::end(v12); v17 = (__int64)v6->getSprite(v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1064LL))(v17, 0x100000001LL); v18 = (__int64)v12->getSprite(v12); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 1064LL))(v18, 0x30300000302LL); v3->addChild(v3, v6); v3->addChild(v3, v12); v19 = (__int64)v6->getSprite(v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 896LL))(v19, 0xFFFFFFFFLL); v20 = (__int64)v12->getSprite(v12); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 896LL))(v20, 0xFFFFFFFFLL); v21 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create(*(float *)&a1[1].m_nTag, 0); v22 = cocos2d::CCCallFunc::create(a1, (__int64)cocos2d::CCTransitionScene::hideOutShowIn, 0); v23 = cocos2d::CCCallFunc::create(a1, (__int64)cocos2d::CCTransitionScene::finish, 0); v25 = cocos2d::CCSequence::create(v21, v22, v23, 0); v24 = v12->getSprite(v12); cocos2d::CCNode::runAction(v24, v25); a1->addChild_1(a1, v3, 2, -86050082); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source