// // cocos2d::CCTileMapAtlas::setTile from 0xb3e3f0 to 0xb3e54c (348 bytes) // // 1 xrefs: // > @ 0xb44c8 // // 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::setTile( cocos2d::CCTileMapAtlas *a1, const cocos2d::ccColor3B *a2, const cocos2d::CCPoint *a3) { cocos2d::sImageTGA *m_pTGAInfo; // x1 int width; // w0 unsigned __int8 *imageData; // x1 __int64 v9; // x0 cocos2d::CCDictionary *m_pPosToAtlasIndex; // x24 cocos2d::CCString *v11; // x0 char *CString; // x0 __int64 v13; // x23 char *v14; // x0 unsigned int *v15; // x2 int v16; // w1 const char *v17; // [xsp+50h] [xbp+50h] BYREF m_pTGAInfo = a1->m_pTGAInfo; width = m_pTGAInfo->width; imageData = m_pTGAInfo->imageData; v9 = 3LL * (unsigned int)(float)(a3->x + (float)(a3->y * (float)width)); if ( imageData[v9] ) { *(_WORD *)&imageData[v9] = *(_WORD *)&a2->r; imageData[v9 + 2] = a2->b; m_pPosToAtlasIndex = a1->m_pPosToAtlasIndex; v11 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ld,%ld", (__int64)a3->x, (__int64)a3->y); CString = (char *)cocos2d::CCString::getCString(v11); sub_D153B8((int)&v17, CString); v13 = cocos2d::CCDictionary::objectForKey((__int64)m_pPosToAtlasIndex, &v17); v14 = (char *)(v17 - 24); if ( v17 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v17 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v14); } cocos2d::CCTileMapAtlas::updateAtlasValueAt(a1, a3, a2, *(_DWORD *)(v13 + 56)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source