// // cocos2d::CCDrawNode::drawCircle from 0x5c66b8 to 0x5c67d6 (286 bytes) // // 4 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x37abec // > LevelEditorLayer::updateDebugDraw @ 0x37ad84 // > LevelEditorLayer::updateDebugDraw @ 0x37af12 // > GJBaseGameLayer::updateDebugDraw @ 0x46baa2 // // 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 // bool cocos2d::CCDrawNode::drawCircle( cocos2d::CCDrawNode *a1, const cocos2d::CCPoint *a2, float a3, const cocos2d::ccColor4F *a4, float a5, const cocos2d::ccColor4F *a6, unsigned int a7) { _BOOL4 is_circle_on_screen; // r0 unsigned int v12; // r0 unsigned int v13; // r9 float *v14; // r6 cocos2d::CCPoint *v15; // r11 unsigned int i; // r11 float v17; // s16 float v18; // s20 float v19; // r0 int v20; // r2 bool v21; // r3 cocos2d::CCPoint *v23; // [sp+14h] [bp-18h] cocos2d::CCPoint v24; // [sp+1Ch] [bp-10h] BYREF if ( !a1->m_bUseArea || (is_circle_on_screen = cocos2d::CCDrawNode::is_circle_on_screen(a1, &a1->m_rDrawArea, a2, a3)) ) { if ( a7 > 0xFE00000 ) v12 = -1; else v12 = 8 * a7; v13 = a7 - 1; v14 = (float *)operator new[](v12); v15 = (cocos2d::CCPoint *)v14; while ( v13 != -1 ) { --v13; cocos2d::CCPoint::CCPoint(v15++); } for ( i = 0; i != a7; ++i ) { v17 = (double)i * (6.28318531 / (double)a7); v18 = cosf(v17); v19 = sinf(v17); v23 = (cocos2d::CCPoint *)&v14[2 * i]; cocos2d::CCPoint::CCPoint(&v24, a2->x + (float)(a3 * v18), a2->y + (float)(a3 * v19)); cocos2d::CCPoint::operator=(v23, &v24.x, v20, v21); } cocos2d::CCDrawNode::drawPolygon(a1, v14, i, (int)a4, a5, (int)a6, 0); operator delete[](v14); LOBYTE(is_circle_on_screen) = 1; } return is_circle_on_screen; }
GD Web Decomp Icon

GD Web Decomp

Raw Source