// // GJBaseGameLayer::playSpeedParticle from 0x867c7c to 0x867e2c (432 bytes) // // 2 xrefs: // > PlayerObject::updateTimeMod @ 0x62e184 // > @ 0x59d90 // // 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 GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *a1, float a2) { char *v3; // x20 cocos2d::CCDirector *v4; // x0 bool v5; // w2 cocos2d::CCParticleSystem *v6; // x20 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCDirector *v8; // x0 float v9; // s0 void (__fastcall *setPosVar)(cocos2d::CCParticleSystem *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCDirector *v11; // x0 float v12; // s0 float v14; // [xsp+5Ch] [xbp+5Ch] cocos2d::CCPoint v15; // [xsp+60h] [xbp+60h] BYREF if ( !GameManager::sharedState()->m_performanceMode && !a1->m_skipArtReload ) { if ( a2 == 0.7 ) { v3 = "speedEffect_slow.plist"; } else if ( a2 == 1.1 ) { v3 = "speedEffect_fast.plist"; } else if ( a2 == 1.3 ) { v3 = "speedEffect_vfast.plist"; } else if ( a2 == 1.6 ) { v3 = "speedEffect_vvfast.plist"; } else { v3 = "speedEffect_normal.plist"; } v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v6 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)v3, nullptr, v5); v6->setPositionType(v6, kCCPositionTypeGrouped); v6->setAutoRemoveOnFinish(v6, 1); a1->addChild_0(a1, v6, 100); setPosition = v6->setPosition; v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v8); cocos2d::CCPoint::CCPoint(&v15, v9 + 10.0, v14 * 0.5); setPosition(v6, &v15); setPosVar = v6->setPosVar; v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenScaleFactorH(v11); cocos2d::CCPoint::CCPoint(&v15, 10.0, (float)(v12 * 320.0) * 0.5); setPosVar(v6, &v15); cocos2d::CCParticleSystem::resetSystem(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source