// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x7e6900 to 0x7e696a (106 bytes) // // 11 xrefs: // > cocos2d::CCParticleFire::initWithTotalParticles @ 0x7e116c // > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x7e12f4 // > cocos2d::CCParticleSun::initWithTotalParticles @ 0x7e1468 // > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x7e160c // > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x7e17d4 // > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x7e198c // > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x7e1b64 // > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x7e1d14 // > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x7e1ee4 // > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x7e2084 // > cocos2d::CCParticleRain::initWithTotalParticles @ 0x7e223c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:54 +0000 // void *__fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles( cocos2d::CCParticleSystemQuad *this, unsigned int a2, bool a3) { void *v4; // r5 cocos2d::CCShaderCache *v5; // r0 int (__fastcall *v6)(cocos2d::CCParticleSystemQuad *, int); // r6 cocos2d::CCShaderCache *v7; // r0 int v8; // r0 cocos2d::CCNotificationCenter *v9; // r0 int v10; // r0 v4 = cocos2d::CCParticleSystem::initWithTotalParticles(this, a2, a3); if ( v4 ) { v4 = (void *)cocos2d::CCParticleSystemQuad::allocMemory(this); if ( v4 ) { cocos2d::CCParticleSystemQuad::initIndices((int)this); v5 = (cocos2d::CCShaderCache *)cocos2d::CCParticleSystemQuad::setupVBO(this); v6 = *(int (__fastcall **)(cocos2d::CCParticleSystemQuad *, int))(*(_DWORD *)this + 332); v7 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v5); v8 = cocos2d::CCShaderCache::programForKey(v7, "ShaderPositionTextureColor"); v9 = (cocos2d::CCNotificationCenter *)v6(this, v8); v10 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v9); cocos2d::CCNotificationCenter::addObserver( v10, (int)this, (int)cocos2d::CCParticleSystemQuad::listenBackToForeground, 0, "event_come_to_foreground", 0); } else { cocos2d::CCObject::release(this); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source