// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x1002532e4 to 0x10025335c (120 bytes) // // 1 xrefs: // > @ 0x1007cf808 // // 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 __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles( cocos2d::CCParticleSystemQuad *a1, unsigned int a2, bool a3) { _BOOL4 v4; // w0 cocos2d::CCShaderCache *v5; // x0 cocos2d::CCGLProgram *v6; // x0 v4 = cocos2d::CCParticleSystem::initWithTotalParticles(a1, a2, a3); if ( v4 ) { if ( cocos2d::CCParticleSystemQuad::allocMemory(a1) ) { cocos2d::CCParticleSystemQuad::initIndices(a1); cocos2d::CCParticleSystemQuad::setupVBOandVAO(a1); v5 = cocos2d::CCShaderCache::sharedShaderCache(); v6 = cocos2d::CCShaderCache::programForKey(v5, "ShaderPositionTextureColor"); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCGLProgram *))a1->setShaderProgram)(a1, v6); LOBYTE(v4) = 1; } else { cocos2d::CCObject::release(a1); LOBYTE(v4) = 0; } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source