// // GJBaseGameLayer::playSpeedParticle from 0x477d0c to 0x477e50 (324 bytes) // // 1 xrefs: // > PlayerObject::updateTimeMod @ 0x344b78 // // 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 *v4; // r4 cocos2d::CCDirector *v5; // r0 bool v6; // r2 cocos2d::CCParticleSystem *v7; // r4 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDirector *v9; // r0 float v10; // r0 void (__fastcall *setPosVar)(cocos2d::CCParticleSystem *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDirector *v12; // r0 float v13; // r0 cocos2d::CCSize v14; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v15; // [sp+Ch] [bp-10h] BYREF if ( !GameManager::sharedState()->m_performanceMode && !a1->m_skipArtReload ) { if ( a2 == 0.7 ) { v4 = "speedEffect_slow.plist"; } else if ( a2 == 1.1 ) { v4 = "speedEffect_fast.plist"; } else if ( a2 == 1.3 ) { v4 = "speedEffect_vfast.plist"; } else if ( a2 == 1.6 ) { v4 = "speedEffect_vvfast.plist"; } else { v4 = "speedEffect_normal.plist"; } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v14, v5); v7 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)v4, nullptr, v6); v7->setPositionType(v7, kCCPositionTypeGrouped); v7->setAutoRemoveOnFinish(v7, 1); a1->addChild_0(a1, v7, 100); setPosition = v7->setPosition; v9 = cocos2d::CCDirector::sharedDirector(); v10 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v9)); cocos2d::CCPoint::CCPoint(&v15, v10 + 10.0, v14.height * 0.5); setPosition(v7, &v15); setPosVar = v7->setPosVar; v12 = cocos2d::CCDirector::sharedDirector(); v13 = COERCE_FLOAT(cocos2d::CCDirector::getScreenScaleFactorH(v12)); cocos2d::CCPoint::CCPoint(&v15, 10.0, (float)(v13 * 320.0) * 0.5); setPosVar(v7, &v15); cocos2d::CCParticleSystem::resetSystem(v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source