// // cocos2d::CCTextureAtlas::setupIndices from 0x10026a024 to 0x10026a094 (112 bytes) // // 2 xrefs: // > cocos2d::CCTextureAtlas::initWithTexture @ 0x100269fc4 // > cocos2d::CCTextureAtlas::resizeCapacity @ 0x10026a470 // // 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::CCTextureAtlas::setupIndices(cocos2d::CCTextureAtlas *a1) { __int64 v1; // x8 int v2; // w9 __int64 v3; // x10 GLushort *m_pIndices; // x11 GLushort v5; // w12 GLushort v6; // w13 v1 = *(&a1->m_uCapacity + 1); if ( (_DWORD)v1 ) { v2 = 0; v3 = 0; m_pIndices = a1->m_pIndices; do { m_pIndices[v2] = 4 * v3; v5 = (4 * v3) | 1; m_pIndices[v2 + 1] = v5; m_pIndices[v2 + 3] = (4 * v3) | 3; v6 = (4 * v3) | 2; m_pIndices[v2 + 2] = v6; m_pIndices[v2 + 4] = v6; ++v3; m_pIndices[v2 + 5] = v5; v2 += 6; } while ( v1 != v3 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source