// // cocos2d::CCTileMapAtlas::initWithTileFile from 0x5fa058 to 0x5fa102 (170 bytes) // // 1 xrefs: // > cocos2d::CCTileMapAtlas::create @ 0x5fa12e // // 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::CCTileMapAtlas::initWithTileFile( cocos2d::CCTileMapAtlas *a1, const char *a2, const char *a3, int a4, int a5) { _BOOL4 v8; // r7 cocos2d::CCDictionary *v9; // r5 cocos2d::CCTileMapAtlas_vtbl *v10; // r3 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 cocos2d::CCSize v13; // [sp+Ch] [bp-Ch] BYREF cocos2d::CCTileMapAtlas::loadTGAfile(a1, a3); cocos2d::CCTileMapAtlas::calculateItemsToRender(a1); v8 = cocos2d::CCAtlasNode::initWithTileFile(a1, a2, a4, a5, a1->m_nItemsToRender); if ( v8 ) { v9 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v9); v10 = a1->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_pPosToAtlasIndex = v9; v10->updateAtlasValues(a1); setContentSize = a1->setContentSize; cocos2d::CCSize::CCSize( &v13, (float)(a1->m_pTGAInfo->width * a1->m_uItemWidth), (float)(a1->m_pTGAInfo->height * a1->m_uItemHeight)); setContentSize(a1, &v13); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source