// // cocos2d::CCTransitionCrossFade::onEnter from 0x1000d8e40 to 0x1000d9171 (817 bytes) // // 1 xrefs: // > @ 0x1008be350 // // 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 *a1) { cocos2d::CCDirector *v2; // rax cocos2d::CCTouchDispatcher *v3; // rax cocos2d::CCLayerColor *v4; // r14 cocos2d::CCRenderTexture *v5; // rax cocos2d::CCRenderTexture *v6; // r15 __int64 v7; // r12 cocos2d::CCRenderTexture *v8; // r12 __int64 v9; // r13 __int64 v10; // rax __int64 v11; // rax cocos2d::CCLayerColor *v12; // r13 __int64 v13; // rax __int64 v14; // rax unsigned int v15; // r14d unsigned int v16; // eax int v17; // r8d int v18; // r9d cocos2d::CCAction *v19; // r14 cocos2d::CCNode *v20; // rax cocos2d::ccColor4B v21; // [rsp+14h] [rbp-3Ch] BYREF _BYTE v22[8]; // [rsp+18h] [rbp-38h] BYREF float v23; // [rsp+20h] [rbp-30h] BYREF float v24; // [rsp+24h] [rbp-2Ch] double v25; // 0:xmm0_8.8 cocos2d::CCNode::onEnter(a1); v2 = cocos2d::CCDirector::sharedDirector(); v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2); cocos2d::CCTouchDispatcher::setDispatchEvents(v3, 0); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 712LL))(*(_QWORD *)&a1[1].m_uID); (*((void (__fastcall **)(cocos2d::CCTransitionCrossFade_vtbl *))a1[1].copyWithZone + 86))(a1[1].__vftable); v21 = 0; cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v25 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v23); v4 = cocos2d::CCLayerColor::create_1(&v21); v5 = cocos2d::CCRenderTexture::create_2((int)v23, (int)v24); if ( v5 ) { v6 = v5; v7 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *, double))v5->getSprite)(v5, v25); sub_10028CBE0(v22, 0.5, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 280LL))(v7, v22); sub_10028CBE0(v22, v23 * 0.5, v24 * 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, _BYTE *))v6->setPosition)(v6, v22); sub_10028CBE0(v22, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, _BYTE *))v6->setAnchorPoint)(v6, v22); cocos2d::CCRenderTexture::begin(v6); (*((void (__fastcall **)(cocos2d::CCTransitionCrossFade_vtbl *))a1[1].copyWithZone + 92))(a1[1].__vftable); cocos2d::CCRenderTexture::end(v6); v8 = cocos2d::CCRenderTexture::create_2((int)v23, (int)v24); v9 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v8->getSprite)(v8); sub_10028CBE0(v22, 0.5, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 280LL))(v9, v22); sub_10028CBE0(v22, v23 * 0.5, v24 * 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, _BYTE *))v8->setPosition)(v8, v22); sub_10028CBE0(v22, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCRenderTexture *, _BYTE *))v8->setAnchorPoint)(v8, v22); cocos2d::CCRenderTexture::begin(v8); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 736LL))(*(_QWORD *)&a1[1].m_uID); cocos2d::CCRenderTexture::end(v8); v10 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v6->getSprite)(v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1064LL))(v10, 0x100000001LL); v11 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v8->getSprite)(v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 1064LL))(v11, 0x30300000302LL); v12 = v4; ((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))v12->addChild)(v12, v6); ((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))v12->addChild)(v12, v8); v13 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v6->getSprite)(v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 896LL))(v13, 255); v14 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v8->getSprite)(v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 896LL))(v14, 255); v15 = (unsigned int)cocos2d::CCFadeTo::create(*(float *)&a1[1].m_nTag, 0); LODWORD(v6) = (unsigned int)cocos2d::CCCallFunc::create( a1, (cocos2d::SEL_CallFunc)(unsigned __int64)cocos2d::CCTransitionScene::hideOutShowIn); v16 = (unsigned int)cocos2d::CCCallFunc::create( a1, (cocos2d::SEL_CallFunc)(unsigned __int64)cocos2d::CCTransitionScene::finish); v19 = (cocos2d::CCAction *)sub_1003B5760(v15, (_DWORD)v6, v16, 0, v17, v18); v20 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))v8->getSprite)(v8); cocos2d::CCNode::runAction(v20, v19); ((void (__fastcall *)(cocos2d::CCTransitionCrossFade *, cocos2d::CCLayerColor *, __int64, __int64))a1->addChild_1)( a1, v12, 2, 4208917214LL); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source