// // EndLevelLayer::starEnterFinished from 0x140135a80 to 0x140135bd5 (341 bytes) // // 4 xrefs: // > EndLevelLayer::playStarEffect @ 0x140135948 // > @ 0x1406711e4 // > @ 0x140671218 // > @ 0x1406c9f24 // // 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::starEnterFinished(EndLevelLayer *a1) { PlayLayer *m_playLayer; // rax int m_levelLength; // edi struct cocos2d::CCParticleSystemQuad *v4; // rax _BOOL8 v5; // rdx cocos2d::CCNode *v6; // rbx CCCircleWave *v7; // rbx cocos2d::CCPoint v8; // [rsp+40h] [rbp+8h] BYREF char v9; // [rsp+48h] [rbp+10h] BYREF m_playLayer = a1->m_playLayer; if ( m_playLayer ) { m_levelLength = m_playLayer->m_level->GJBaseGameLayer::m_levelLength; cocos2d::CCPoint::CCPoint(&v8, 0.0, 8.0); cocos2d::CCPoint::operator+(&a1->m_starsPosition, &v9); v4 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0); LOBYTE(v5) = 1; v6 = v4; v4->setAutoRemoveOnFinish(v4, v5); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 9); v6->setPosition_0(v6, (const cocos2d::CCPoint *)&v9); v7 = CCCircleWave::create(10.0, 90.0, 0.40000001, 0, 1); if ( m_levelLength == 5 ) { LOWORD(v8.x) = -256; BYTE2(v8.x) = -1; } else { LOWORD(v8.x) = -1; BYTE2(v8.x) = 0; } *(_WORD *)&v7->m_color.r = LOWORD(v8.x); v7->m_color.b = BYTE2(v8.x); v7->setPosition_0(v7, (const cocos2d::CCPoint *)&v9); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 9); EndLevelLayer::playEndEffect(a1); } }