// // GJBaseGameLayer::playSpeedParticle from 0x10015cc90 to 0x10015ce02 (370 bytes) // // 1 xrefs: // > PlayerObject::updateTimeMod @ 0x1003fc6da // // 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 GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *a1, float a2) { const char *v2; // r14 cocos2d::CCParticleSystemQuad *v3; // r14 cocos2d::CCDirector *v4; // rax cocos2d::CCDirector *v5; // rax double v6; // xmm0_8 char v7; // [rsp+Ch] [rbp-24h] BYREF float v8; // [rsp+10h] [rbp-20h] _BYTE v9[8]; // [rsp+14h] [rbp-1Ch] BYREF float v10; // [rsp+1Ch] [rbp-14h] double v11; // 0:xmm0_8.8 v10 = a2; if ( !GameManager::sharedState()->m_performanceMode && !a1->m_skipArtReload ) { if ( v10 == 0.69999999 ) { v2 = "speedEffect_slow.plist"; } else if ( v10 == 1.1 ) { v2 = "speedEffect_fast.plist"; } else if ( v10 == 1.3 ) { v2 = "speedEffect_vfast.plist"; } else { v2 = "speedEffect_vvfast.plist"; if ( v10 != 1.6 ) v2 = "speedEffect_normal.plist"; } cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v11 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7); v3 = cocos2d::CCParticleSystemQuad::create(v2, 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64, double))v3->setPositionType)(v3, 2, v11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v3->setAutoRemoveOnFinish)(v3, 1); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v3, 100); v4 = cocos2d::CCDirector::sharedDirector(); *(float *)&v11 = sub_100484DA0(v4); sub_10028CBE0(v9, *(float *)&v11 + 10.0, v8 * 0.5); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _BYTE *))v3->setPosition)(v3, v9); v5 = cocos2d::CCDirector::sharedDirector(); v6 = sub_100484D50(v5); sub_10028CBE0(v9, 10.0, 0.5 * (float)(*(float *)&v6 * 320.0)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _BYTE *))v3->setPosVar)(v3, v9); cocos2d::CCParticleSystem::resetSystem(v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source