// // EndLevelLayer::coinEnterFinished from 0x428040 to 0x4281aa (362 bytes) // // 1 xrefs: // > EndLevelLayer::coinEnterFinishedO @ 0x4281ec // // 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 EndLevelLayer::coinEnterFinished(EndLevelLayer *a1, cocos2d::CCPoint a2) { float x; // r4 bool v4; // r2 cocos2d::CCNode *v5; // r0 cocos2d::CCNode *v6; // r4 int v7; // r3 int v8; // r2 int v9; // s14 cocos2d::CCNode *(__fastcall *getChildByTag)(cocos2d::CCNode *__hidden, int); // r10 float v11; // s17 int v12; // r3 cocos2d::CCNode *(__fastcall *getParent)(cocos2d::CCNode *__hidden); // r3 FMODAudioEngine *v14; // r4 int v15; // r2 int v16; // r3 CCCircleWave *v17; // r0 char m_notLocal; // r3 cocos2d::CCNode *v19; // r4 char v20; // r2 CCCircleWave_vtbl *v21; // r3 cocos2d::CCPoint v22; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v23; // [sp+Ch] [bp-14h] BYREF float v24; // [sp+14h] [bp-Ch] int v25; // [sp+18h] [bp-8h] x = a2.x; cocos2d::CCPoint::CCPoint(&v23, 0.0, 0.0); cocos2d::CCPoint::operator+(&v22, LODWORD(x), &v23); v5 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"starEffect.plist", nullptr, v4); v6 = v5; if ( a1->m_notLocal ) { if ( a1->m_coinsVerified ) { v7 = 255; v8 = 255; } else { v7 = 75; v8 = 175; } v9 = v7; getChildByTag = v5->__vftable[1].getChildByTag; v11 = (float)v8 / 255.0; v12 = *(_DWORD *)(((int (__fastcall *)(cocos2d::CCNode *))v5->__vftable[1].addChild_1)(v5) + 12); v23.x = 1.0; v23.y = v11; v25 = v12; v24 = (float)v9 / 255.0; getChildByTag(v6, (int)&v23); getParent = v6->__vftable[1].getParent; v23.x = 1.0; v23.y = v11; v25 = 0; v24 = (float)v9 / 255.0; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCPoint *))getParent)(v6, &v23); } ((void (__fastcall *)(cocos2d::CCNode *, int))v6->__vftable[1].onEnter)(v6, 1); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 9); v6->setPosition(v6, &v22); v14 = FMODAudioEngine::sharedEngine(); sub_776584((int)&v23, "highscoreGet02.ogg"); FMODAudioEngine::playEffect(v14, (int)&v23, v15, v16); sub_774008(&v23); v17 = CCCircleWave::create(10.0, 90.0, 0.4, 0); m_notLocal = a1->m_notLocal; v19 = v17; if ( m_notLocal ) { if ( a1->m_coinsVerified ) { m_notLocal = -1; v20 = -1; } else { m_notLocal = 75; v20 = -81; } } else { v20 = -1; } v17->m_color.b = m_notLocal; v21 = v17->__vftable; v17->m_color.r = -1; v17->m_color.g = v20; v21->setPosition(v17, &v22); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v19, 9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source