// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0xd73f24 to 0xd73fec (200 bytes) // // 24 xrefs: // > cocos2d::CCParticleFire::initWithTotalParticles @ 0xd6b9e0 // > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0xd6bbd0 // > cocos2d::CCParticleSun::initWithTotalParticles @ 0xd6bda0 // > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0xd6bfcc // > cocos2d::CCParticleFlower::initWithTotalParticles @ 0xd6c23c // > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0xd6c494 // > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0xd6c70c // > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0xd6c958 // > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0xd6cbc8 // > cocos2d::CCParticleSnow::initWithTotalParticles @ 0xd6ce0c // > cocos2d::CCParticleRain::initWithTotalParticles @ 0xd6d064 // > @ 0xdb8e0 // > @ 0x1528168 // > @ 0x1528828 // > @ 0x1528ee8 // > @ 0x15295a8 // > @ 0x1529c68 // > @ 0x152a328 // > @ 0x152a9e8 // > @ 0x152b0a8 // > @ 0x152b768 // > @ 0x152be28 // > @ 0x152c4e8 // > @ 0x152d6d8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:01 +0000 // __int64 __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles( cocos2d::CCParticleSystemQuad *this, unsigned int a2, unsigned __int8 a3) { __int64 result; // x0 unsigned int v5; // w19 __int64 (__fastcall *v6)(cocos2d::CCParticleSystemQuad *, __int64); // x21 cocos2d::CCShaderCache *v7; // x0 __int64 v8; // x0 cocos2d::CCNotificationCenter *v9; // x0 int v10; // w0 LOBYTE(result) = cocos2d::CCParticleSystem::initWithTotalParticles(this, a2, a3); if ( !(_BYTE)result ) return (unsigned __int8)result; v5 = (unsigned __int8)cocos2d::CCParticleSystemQuad::allocMemory(this); if ( v5 ) { cocos2d::CCParticleSystemQuad::initIndices((__int64)this); cocos2d::CCParticleSystemQuad::setupVBO(this); v6 = *(__int64 (__fastcall **)(cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)this + 664LL); v7 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(*(cocos2d::CCShaderCache **)this); 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"); return v5; } else { cocos2d::CCObject::release(this); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source