// // cocos2d::CCLightning::draw from 0x140044770 to 0x1400448e4 (372 bytes) // // 4 xrefs: // > @ 0x14052e7e8 // > @ 0x140662888 // > @ 0x140662898 // > @ 0x1406c462c // // 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::CCLightning::draw(cocos2d::CCLightning *a1) { int m_opacity; // eax unsigned int *p_m_numPoints; // r14 GLubyte b; // r8 GLubyte g; // dl const struct cocos2d::CCPoint *v6; // rbx const struct cocos2d::CCPoint *v7; // rax unsigned int v8; // r8d int v9; // edi const struct cocos2d::CCPoint *v10; // rbx const struct cocos2d::CCPoint *v11; // rax struct cocos2d::CCPoint v12; // [rsp+70h] [rbp+8h] BYREF cocos2d::CCPoint v13; // [rsp+78h] [rbp+10h] BYREF cocos2d::CCPoint v14; // [rsp+80h] [rbp+18h] BYREF struct cocos2d::CCPoint v15; // [rsp+88h] [rbp+20h] BYREF m_opacity = a1->m_opacity; p_m_numPoints = &a1->m_numPoints; b = a1->m_color.b; g = a1->m_color.g; a1->m_numPoints = 0; cocos2d::ccDrawColor4B((cocos2d *)a1->m_color.r, g, b, (int)(float)((float)m_opacity * a1->m_opacityModify)); glLineWidth(a1->m_lineWidth); cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u); v6 = (const struct cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(&v13, &a1->m_strikePoint); cocos2d::CCPoint::CCPoint(&v14, 0.0, 0.0); sub_140044220( &v12, v7, v6, a1->m_displacement, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, p_m_numPoints); if ( a1->m_split ) { v9 = a1->m_displacement / 2; v10 = (const struct cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(&v13, &a1->m_strikePoint2); v11 = (const struct cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(&v14, &v12); sub_140044220(&v15, v11, v10, v9, a1->m_minDisplacement, a1->m_seed, (__int64)a1->m_lightningPoints, p_m_numPoints); } cocos2d::ccDrawLines((cocos2d *)a1->m_lightningPoints, (const struct cocos2d::CCPoint *)*p_m_numPoints, v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source