// // cocos2d::CCTransitionCrossFade::onEnter from 0x180054b40 to 0x180054ea1 (865 bytes) // // 5 xrefs: // > @ 0x1800f3668 // > @ 0x1801387d4 // > @ 0x1801387e4 // > @ 0x1801438a8 // > @ 0x1801b276c // // 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::CCTransitionCrossFade::onEnter(cocos2d::CCTransitionCrossFade *this) { struct cocos2d::CCDirector *v2; // rax cocos2d::CCTouchDispatcher *v3; // rax cocos2d::CCDirector *v4; // rax struct cocos2d::CCLayerColor *v5; // rbp struct cocos2d::CCRenderTexture *v6; // rax cocos2d::CCRenderTexture *v7; // r15 __int64 *v8; // rbx __int64 v9; // rdi float *v10; // rax cocos2d::CCRenderTexture_vtbl *v11; // rbx float *v12; // rax cocos2d::CCRenderTexture_vtbl *v13; // rbx float *v14; // rax cocos2d::CCRenderTexture *v15; // rsi __int64 *v16; // rbx __int64 v17; // rdi float *v18; // rax cocos2d::CCRenderTexture_vtbl *v19; // rbx float *v20; // rax cocos2d::CCRenderTexture_vtbl *v21; // rbx float *v22; // rax cocos2d::CCRenderTexture_vtbl *v23; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // rax __int64 v27; // rdx __int64 v28; // rax __int64 v29; // rdx cocos2d::CCAction *v30; // rdi cocos2d::CCAction *v31; // rbx struct cocos2d::CCFadeTo *v32; // rax struct cocos2d::CCSequence *v33; // rbx cocos2d::CCNode *v34; // rax struct cocos2d::_ccColor4B v35; // [rsp+70h] [rbp+8h] BYREF float v36; // [rsp+78h] [rbp+10h] float v37; // [rsp+7Ch] [rbp+14h] __int64 v38; // [rsp+80h] [rbp+18h] BYREF __int64 v39; // [rsp+88h] [rbp+20h] cocos2d::CCNode::onEnter(this); v2 = cocos2d::CCDirector::sharedDirector(); v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getTouchDispatcher)(v2); cocos2d::CCTouchDispatcher::setDispatchEvents(v3, 0); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 42) + 704LL))(*((_QWORD *)this + 42)); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 680LL))(*((_QWORD *)this + 41)); v35 = 0; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5 = cocos2d::CCLayerColor::create(&v35); v6 = cocos2d::CCRenderTexture::create((int)v36, (int)v37); v7 = v6; if ( v6 ) { v8 = (__int64 *)((__int64 (__fastcall *)(struct cocos2d::CCRenderTexture *))v6->getSprite)(v6); v9 = *v8; v10 = kmVec2Fill((float *)&v38, 0.5, 0.5); (*(void (__fastcall **)(__int64 *, float *))(v9 + 272))(v8, v10); v11 = v7->__vftable; v12 = kmVec2Fill((float *)&v38, v36 * 0.5, v37 * 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, float *))v11->setPosition_0)(v7, v12); v13 = v7->__vftable; v14 = kmVec2Fill((float *)&v38, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, float *))v13->setAnchorPoint)(v7, v14); cocos2d::CCRenderTexture::begin(v7); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 728LL))(*((_QWORD *)this + 41)); cocos2d::CCRenderTexture::end(v7); v15 = cocos2d::CCRenderTexture::create((int)v36, (int)v37); v16 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v15->getSprite)(v15); v17 = *v16; v18 = kmVec2Fill((float *)&v38, 0.5, 0.5); (*(void (__fastcall **)(__int64 *, float *))(v17 + 272))(v16, v18); v19 = v15->__vftable; v20 = kmVec2Fill((float *)&v38, v36 * 0.5, v37 * 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, float *))v19->setPosition_0)(v15, v20); v21 = v15->__vftable; v22 = kmVec2Fill((float *)&v38, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, float *))v21->setAnchorPoint)(v15, v22); cocos2d::CCRenderTexture::begin(v15); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 42) + 728LL))(*((_QWORD *)this + 42)); cocos2d::CCRenderTexture::end(v15); v23 = v7->__vftable; v38 = 0x100000001LL; v39 = 0x30300000302LL; v24 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v23->getSprite)(v7); (**(void (__fastcall ***)(__int64, __int64))(v24 + 344))(v24 + 344, v38); v25 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v15->getSprite)(v15); (**(void (__fastcall ***)(__int64, __int64))(v25 + 344))(v25 + 344, v39); ((void (__fastcall *)(struct cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))v5->addChild_1)(v5, v7); ((void (__fastcall *)(struct cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))v5->addChild_1)(v5, v15); v26 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v7->getSprite)(v7); LOBYTE(v27) = -1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v26 + 320) + 40LL))(v26 + 320, v27); v28 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v15->getSprite)(v15); LOBYTE(v29) = -1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v28 + 320) + 40LL))(v28 + 320, v29); v30 = cocos2d::CCCallFunc::create(this, (__int64)cocos2d::CCTransitionScene::finish); v31 = cocos2d::CCCallFunc::create(this, (__int64)cocos2d::CCTransitionScene::hideOutShowIn); v32 = cocos2d::CCFadeTo::create(*((float *)this + 86), 0); v33 = cocos2d::CCSequence::create(v32, v31, v30, 0); v34 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v15->getSprite)(v15); cocos2d::CCNode::runAction(v34, v33); ((void (__fastcall *)(cocos2d::CCTransitionCrossFade *, struct cocos2d::CCLayerColor *, __int64, __int64))this->addChild)( this, v5, 2, 4208917214LL); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source