// // cocos2d::CCSpriteBatchNode::initWithTexture from 0x5e8394 to 0x5e842a (150 bytes) // // 5 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0x5cdc90 // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x5e844a // > cocos2d::CCSpriteBatchNode::init @ 0x5e8478 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0x5e849a // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0x5f7388 // // 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::CCSpriteBatchNode::initWithTexture( cocos2d::CCSpriteBatchNode *a1, cocos2d::CCTexture2D *a2, unsigned int a3) { cocos2d::CCTextureAtlas *v6; // r7 cocos2d::CCArray *v7; // r7 cocos2d::CCArray *v8; // r7 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r5 cocos2d::CCShaderCache *v10; // r0 cocos2d::CCGLProgram *v11; // r0 a1->m_blendFunc.dst = 771; a1->m_blendFunc.src = 1; v6 = (cocos2d::CCTextureAtlas *)operator new(0x58u); cocos2d::CCTextureAtlas::CCTextureAtlas(v6); a1->m_pobTextureAtlas = v6; if ( !a3 ) a3 = 29; cocos2d::CCTextureAtlas::initWithTexture(v6, a2, a3); cocos2d::CCSpriteBatchNode::updateBlendFunc(a1); v7 = (cocos2d::CCArray *)operator new(0x38u); cocos2d::CCArray::CCArray(v7); a1->m_pChildren = v7; cocos2d::CCArray::initWithCapacity(v7, (cocos2d::_ccArray **)a3); v8 = (cocos2d::CCArray *)operator new(0x38u); cocos2d::CCArray::CCArray(v8); a1->m_pobDescendants = v8; cocos2d::CCArray::initWithCapacity(v8, (cocos2d::_ccArray **)a3); a1->m_bManualSortChildren = 0; a1->m_bManualSortAllChildrenDirty = 0; setShaderProgram = a1->setShaderProgram; v10 = cocos2d::CCShaderCache::sharedShaderCache(); v11 = cocos2d::CCShaderCache::programForKey(v10, "ShaderPositionTextureColor"); setShaderProgram(a1, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source