// // cocos2d::CCDrawNode::drawCircle from 0xadafa0 to 0xadb124 (388 bytes) // // 5 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x684ebc // > LevelEditorLayer::updateDebugDraw @ 0x685070 // > LevelEditorLayer::updateDebugDraw @ 0x68539c // > GJBaseGameLayer::updateDebugDraw @ 0x854ee4 // > @ 0xc85c8 // // 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) { __int64 v14; // x19 __int64 v15; // x0 float *v16; // x24 cocos2d::CCPoint *v17; // x21 cocos2d::CCPoint *v18; // x0 cocos2d::CCPoint *v19; // x19 unsigned int v20; // w28 double v21; // d8 float v22; // s12 float v23; // s0 cocos2d::CCPoint *v24; // x0 float v25; // s0 float v26; // s1 _BOOL8 v27; // x0 cocos2d::CCPoint v29; // [xsp+90h] [xbp+90h] BYREF if ( !a1->m_bUseArea || (LOBYTE(v27) = cocos2d::CCDrawNode::is_circle_on_screen(a1, &a1->m_rDrawArea, a2, a3), v27) ) { v14 = a7 - 1LL; v15 = operator new[](8LL * a7); v16 = (float *)v15; if ( a7 ) { v17 = (cocos2d::CCPoint *)v15; do { v18 = v17; --v14; ++v17; cocos2d::CCPoint::CCPoint(v18); } while ( v14 != -1 ); } if ( a7 ) { v19 = (cocos2d::CCPoint *)v16; v20 = 0; do { v21 = (double)v20++; *(float *)&v21 = v21 * (6.28318531 / (double)a7); v22 = cosf(*(float *)&v21); v23 = sinf(*(float *)&v21); cocos2d::CCPoint::CCPoint(&v29, a2->x + (float)(v22 * a3), a2->y + (float)(v23 * a3)); v24 = v19++; cocos2d::CCPoint::operator=(v24, v25, v26, (float *)&v29); } while ( v20 != a7 ); } cocos2d::CCDrawNode::drawPolygon(a1, v16, a7, &a4->r, &a6->r, 0, a5); operator delete[](v16); return (char)&dword_0 + 1; } return v27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source