// // GJBaseGameLayer::playSpeedParticle from 0x100204244 to 0x1002043d0 (396 bytes) // // 1 xrefs: // > PlayerObject::updateTimeMod @ 0x100218fac // // 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 *v4; // x20 cocos2d::CCDirector *v5; // x0 cocos2d::CCParticleSystemQuad *v6; // x20 cocos2d::CCDirector *v7; // x0 __n128 v8; // q0 __n128 v9; // q1 cocos2d::CCDirector *v10; // x0 __n128 v11; // q1 __n128 v12; // q0 _DWORD v13[4]; // [xsp+0h] [xbp-30h] 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(v5); v6 = cocos2d::CCParticleSystemQuad::create(v4, 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v6->setPositionType)(v6, 2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v6->setAutoRemoveOnFinish)(v6, 1); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v6, 100); v7 = cocos2d::CCDirector::sharedDirector(); v8.n128_f32[0] = sub_1001768E0((__int64)v7) + 10.0; v9.n128_f32[0] = *(float *)&v13[3] * 0.5; sub_100022980(v8, v9, v13); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD *))v6->setPosition)(v6, v13); v10 = cocos2d::CCDirector::sharedDirector(); v11.n128_f32[0] = (float)(sub_1001768B8((__int64)v10) * 320.0) * 0.5; v12.n128_u32[0] = 10.0; sub_100022980(v12, v11, v13); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD *))v6->setPosVar)(v6, v13); cocos2d::CCParticleSystem::resetSystem(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source