// // cocos2d::CCDrawNode::drawCircle from 0x7cd9c8 to 0x7cdae6 (286 bytes) // // 4 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x48075c // > LevelEditorLayer::updateDebugDraw @ 0x4808fe // > LevelEditorLayer::updateDebugDraw @ 0x480a8c // > GJBaseGameLayer::updateDebugDraw @ 0x58d682 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:32 +0000 // bool __fastcall cocos2d::CCDrawNode::drawCircle( _BYTE *a1, cocos2d::CCPoint *a2, float a3, int a4, float a5, int a6, unsigned int a7) { _BOOL4 result; // r0 unsigned int v12; // r0 unsigned int v13; // r9 float *v14; // r6 float *v15; // r11 unsigned int i; // r11 float v17; // s16 float v18; // s20 float v19; // r0 float *v20; // [sp+14h] [bp-18h] float v21[2]; // [sp+1Ch] [bp-10h] BYREF if ( !a1[309] || (result = cocos2d::CCDrawNode::is_circle_on_screen( (cocos2d::CCDrawNode *)a1, (const cocos2d::CCRect *)(a1 + 312), a2, a3)) ) { if ( a7 > 0xFE00000 ) v12 = -1; else v12 = 8 * a7; v13 = a7 - 1; v14 = (float *)operator new[](v12); v15 = v14; while ( v13 != -1 ) { --v13; cocos2d::CCPoint::CCPoint(v15); v15 += 2; } for ( i = 0; i != a7; ++i ) { v17 = (double)i * (6.28318531 / (double)a7); v18 = cosf(v17); v19 = sinf(v17); v20 = &v14[2 * i]; cocos2d::CCPoint::CCPoint(v21, *(float *)a2 + (float)(a3 * v18), *((float *)a2 + 1) + (float)(a3 * v19)); cocos2d::CCPoint::operator=(v20, v21); } cocos2d::CCDrawNode::drawPolygon((int)a1, v14, i, a4, a5, a6, 0); operator delete[](v14); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source