// // cocos2d::ccDrawCircleSegment from 0xad8560 to 0xad8714 (436 bytes) // // 4 xrefs: // > ParticlePreviewLayer::draw @ 0x9c0e54 // > ParticlePreviewLayer::draw @ 0x9c0ed0 // > ParticlePreviewLayer::draw @ 0x9c1048 // > @ 0xb2c50 // // 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::ccDrawCircleSegment( const cocos2d::CCPoint *a1, float a2, float a3, float a4, unsigned int a5, bool a6, float a7, float a8) { float v15; // w26 float *v16; // x25 float x; // s11 unsigned int v18; // w24 float y; // s15 unsigned int v20; // w19 float v21; // s8 float v22; // s0 unsigned int v23; // w0 cocos2d::CCGLProgram *v24; // x0 unsigned int v25; // w1 if ( *(float *)&dword_1230CDC > 0.0 ) { if ( !byte_12451A0 ) sub_AD7B20(); v15 = a4 / (float)a5; v16 = (float *)calloc(8LL * (a5 + 2), 1u); if ( v16 ) { x = a1->x; v18 = 1; y = a1->y; v20 = 0; do { v21 = cosf(a3 + (float)((float)v20 * v15)); v22 = sinf(a3 + (float)((float)v20 * v15)); v23 = 2 * v20++; v16[v23] = x + (float)((float)(v21 * a2) * a7); v16[v18] = y + (float)((float)(v22 * a2) * a8); v18 += 2; } while ( a5 >= v20 ); v24 = (cocos2d::CCGLProgram *)qword_1245198; v25 = 2 * (a5 + 1); v16[v25] = x; v16[v25 + 1] = y; cocos2d::CCGLProgram::use(v24); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1245198); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)qword_1245198, dword_1230CC8, (float *)&dword_1230CD0, 1u); cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1); glVertexAttribPointer(); glDrawArrays(); free(v16); ++g_uNumberOfDraws; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source