// // cocos2d::CCTextureAtlas::setupIndices from 0x5f44ac to 0x5f44ee (66 bytes) // // 2 xrefs: // > cocos2d::CCTextureAtlas::initWithTexture @ 0x5f45ea // > cocos2d::CCTextureAtlas::resizeCapacity @ 0x5f4934 // // 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::CCTextureAtlas::setupIndices(cocos2d::CCTextureAtlas *a1) { unsigned int m_uCapacity; // r6 __int16 v2; // r3 int v3; // r4 int v4; // r1 int v5; // r5 GLushort *m_pIndices; // r2 GLushort v7; // r7 GLushort *v8; // r2 m_uCapacity = a1->m_uCapacity; if ( m_uCapacity ) { v2 = 1; v3 = 1; v4 = 0; do { v5 = 12 * v4; m_pIndices = a1->m_pIndices; v7 = 4 * v4++; *(GLushort *)((char *)m_pIndices + v5) = v7; m_pIndices[v3] = v2; v8 = &m_pIndices[v3]; LOWORD(v5) = v2 + 1; v8[4] = v2; v8[1] = v2 + 1; v3 += 6; v8[2] = v2 + 2; v2 += 4; v8[3] = v5; } while ( v4 != m_uCapacity ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source