// // cocos2d::CCTileMapAtlas::calculateItemsToRender from 0xb3de44 to 0xb3deb8 (116 bytes) // // 2 xrefs: // > cocos2d::CCTileMapAtlas::initWithTileFile @ 0xb3dfc8 // > @ 0xc1ff8 // // 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 // void cocos2d::CCTileMapAtlas::calculateItemsToRender(cocos2d::CCTileMapAtlas *a1) { cocos2d::sImageTGA *m_pTGAInfo; // x9 int width; // w5 int height; // w4 __int64 v4; // x7 int v5; // w2 unsigned __int8 *v6; // x1 int v7; // w3 m_pTGAInfo = a1->m_pTGAInfo; a1->m_nItemsToRender = 0; width = m_pTGAInfo->width; if ( width > 0 ) { height = m_pTGAInfo->height; v4 = 0; do { if ( height > 0 ) { v5 = 0; v6 = &m_pTGAInfo->imageData[v4]; do { v7 = *v6; ++v5; v6 += 3 * width; if ( v7 ) ++a1->m_nItemsToRender; } while ( v5 != height ); } v4 += 3; } while ( v4 != 3 * ((unsigned int)(width - 1) + 1LL) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source