// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0xb038f4 to 0xb039bc (200 bytes) // // 24 xrefs: // > cocos2d::CCParticleFire::initWithTotalParticles @ 0xafa8a8 // > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0xafaa98 // > cocos2d::CCParticleSun::initWithTotalParticles @ 0xafac68 // > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0xafae94 // > cocos2d::CCParticleFlower::initWithTotalParticles @ 0xafb104 // > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0xafb35c // > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0xafb5d4 // > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0xafb820 // > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0xafba90 // > cocos2d::CCParticleSnow::initWithTotalParticles @ 0xafbcd4 // > cocos2d::CCParticleRain::initWithTotalParticles @ 0xafbf2c // > @ 0xa74c0 // > @ 0x12123f8 // > @ 0x1212aa8 // > @ 0x1213158 // > @ 0x1213808 // > @ 0x1213eb8 // > @ 0x1214568 // > @ 0x1214c18 // > @ 0x12152c8 // > @ 0x1215978 // > @ 0x1216028 // > @ 0x12166d8 // > @ 0x1217898 // // 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 v5; // w19 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x21 cocos2d::CCShaderCache *v7; // x0 cocos2d::CCGLProgram *v8; // x0 cocos2d::CCNotificationCenter *v9; // x0 cocos2d::SEL_CallFuncO v10; // 0:x2.16 if ( !cocos2d::CCParticleSystem::initWithTotalParticles(a1, a2, a3) ) return 0; v5 = cocos2d::CCParticleSystemQuad::allocMemory(a1); if ( v5 ) { cocos2d::CCParticleSystemQuad::initIndices(a1); cocos2d::CCParticleSystemQuad::setupVBO(a1); setShaderProgram = a1->setShaderProgram; v7 = cocos2d::CCShaderCache::sharedShaderCache(); v8 = cocos2d::CCShaderCache::programForKey(v7, "ShaderPositionTextureColor"); setShaderProgram(a1, v8); v9 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); v10.adj = 0; v10.ptr = (void (__cdecl *)(cocos2d::CCObject *))cocos2d::CCParticleSystemQuad::listenBackToForeground; cocos2d::CCNotificationCenter::addObserver(v9, a1, v10, "event_come_to_foreground", nullptr); return v5; } else { cocos2d::CCObject::release(a1); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source