// // cocos2d::CCTileMapAtlas::calculateItemsToRender from 0x1800ab0a0 to 0x1800ab135 (149 bytes) // // 3 xrefs: // > cocos2d::CCTileMapAtlas::initWithTileFile @ 0x1800ab273 // > @ 0x1801438a8 // > @ 0x1801b8034 // // 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 __fastcall cocos2d::CCTileMapAtlas::calculateItemsToRender(cocos2d::CCTileMapAtlas *this) { cocos2d::sImageTGA *m_pTGAInfo; // r9 int v2; // ebx __int16 width; // r10 int v4; // eax __int16 i; // dx m_pTGAInfo = this->m_pTGAInfo; this->m_nItemsToRender = 0; v2 = 0; width = m_pTGAInfo->width; if ( width > 0 ) { do { v4 = 0; for ( i = width; v4 < m_pTGAInfo->height; width = i ) { i = width; if ( (unsigned __int8)*(_WORD *)&m_pTGAInfo->imageData[3 * v2 + 3 * v4 * width] ) { ++this->m_nItemsToRender; i = m_pTGAInfo->width; } ++v4; } ++v2; width = i; } while ( v2 < i ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source