// // cocos2d::CCSpriteBatchNode::initWithTexture from 0xb181d0 to 0xb182b4 (228 bytes) // // 6 xrefs: // > cocos2d::CCLabelBMFont::initWithString @ 0xae84c0 // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0xb182e8 // > cocos2d::CCSpriteBatchNode::init @ 0xb18340 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0xb18380 // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0xb38c8c // > @ 0x75ed0 // // 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 *v5; // x22 cocos2d::CCArray *v6; // x22 cocos2d::CCArray *v7; // x22 cocos2d::CCSpriteBatchNode_vtbl *v8; // x0 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x20 cocos2d::CCShaderCache *v10; // x0 cocos2d::CCGLProgram *v11; // x0 a1->m_blendFunc.dst = 771; a1->m_blendFunc.src = 1; v5 = (cocos2d::CCTextureAtlas *)operator new(0x70u); cocos2d::CCTextureAtlas::CCTextureAtlas(v5); a1->m_pobTextureAtlas = v5; if ( !a3 ) a3 = 29; cocos2d::CCTextureAtlas::initWithTexture(v5, a2, a3); cocos2d::CCSpriteBatchNode::updateBlendFunc(a1); v6 = (cocos2d::CCArray *)operator new(0x40u); cocos2d::CCArray::CCArray(v6); a1->m_pChildren = v6; cocos2d::CCArray::initWithCapacity(v6, (cocos2d::_ccArray **)a3); v7 = (cocos2d::CCArray *)operator new(0x40u); cocos2d::CCArray::CCArray(v7); a1->m_pobDescendants = v7; cocos2d::CCArray::initWithCapacity(v7, (cocos2d::_ccArray **)a3); a1->m_bManualSortChildren = 0; v8 = a1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_bManualSortAllChildrenDirty = 0; setShaderProgram = v8->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