// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x5de0b0 to 0x5de11a (106 bytes) // // 11 xrefs: // > cocos2d::CCParticleFire::initWithTotalParticles @ 0x5d8cb8 // > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x5d8e40 // > cocos2d::CCParticleSun::initWithTotalParticles @ 0x5d8fb4 // > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x5d9158 // > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x5d9320 // > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x5d94d8 // > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x5d96b0 // > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x5d9860 // > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x5d9a30 // > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x5d9bd0 // > cocos2d::CCParticleRain::initWithTotalParticles @ 0x5d9d88 // // 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 // bool cocos2d::CCParticleSystemQuad::initWithTotalParticles(cocos2d::CCParticleSystemQuad *a1, unsigned int a2, bool a3) { _BOOL4 v4; // r5 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r6 cocos2d::CCShaderCache *v6; // r0 cocos2d::CCGLProgram *v7; // r0 cocos2d::CCNotificationCenter *v8; // r0 v4 = cocos2d::CCParticleSystem::initWithTotalParticles(a1, a2, a3); if ( v4 ) { v4 = cocos2d::CCParticleSystemQuad::allocMemory(a1); if ( v4 ) { cocos2d::CCParticleSystemQuad::initIndices(a1); cocos2d::CCParticleSystemQuad::setupVBO(a1); setShaderProgram = a1->setShaderProgram; v6 = cocos2d::CCShaderCache::sharedShaderCache(); v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor"); setShaderProgram(a1, v7); v8 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); cocos2d::CCNotificationCenter::addObserver( v8, a1, (cocos2d::SEL_CallFuncO)(unsigned int)cocos2d::CCParticleSystemQuad::listenBackToForeground, "event_come_to_foreground", nullptr); } else { cocos2d::CCObject::release(a1); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source