// // cocos2d::CCLightning::initWithStrikePoint from 0x3c5fec to 0x3c608a (158 bytes) // // 2 xrefs: // > cocos2d::CCLightning::lightningWithStrikePoint @ 0x3c60d4 // > cocos2d::CCLightning::initWithStrikePoint @ 0x3c6142 // // 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 11:46:34 +0000 // int __fastcall cocos2d::CCLightning::initWithStrikePoint(int a1, int a2, int a3, int a4) { char *v7; // r0 cocos2d::CCPoint *v8; // r7 void *v9; // r5 cocos2d::CCPoint *v10; // r6 int v11; // r1 int v12; // r2 cocos2d::CCPoint::operator=(a1 + 268, a2); cocos2d::CCPoint::operator=(a1 + 276, a3); *(_WORD *)(a1 + 333) = -1; *(_BYTE *)(a1 + 335) = -1; *(_BYTE *)(a1 + 329) = -1; *(_QWORD *)(a1 + 296) = rand(); *(_DWORD *)(a1 + 312) = a4; *(_BYTE *)(a1 + 284) = 0; *(_DWORD *)(a1 + 288) = 160; *(_DWORD *)(a1 + 324) = 0; *(_DWORD *)(a1 + 292) = 8; v7 = (char *)operator new[](0x640u); v8 = (cocos2d::CCPoint *)(v7 + 1600); v9 = v7; v10 = (cocos2d::CCPoint *)v7; do { cocos2d::CCPoint::CCPoint(v10); v10 = (cocos2d::CCPoint *)((char *)v10 + 8); } while ( v10 != v8 ); *(_DWORD *)(a1 + 320) = v9; memset(v9, 0, 0x640u); *(_BYTE *)(a1 + 308) = 0; cocos2d::CCLightning::strike((cocos2d::CCFadeOut **)a1, v11, v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source