// // GJBaseGameLayer::checkpointActivated from 0x140246ac0 to 0x140246cf4 (564 bytes) // // 4 xrefs: // > LevelEditorLayer::checkpointActivated @ 0x1402e0f28 // > PlayLayer::checkpointActivated @ 0x1403b4fb0 // > @ 0x1405670d8 // > @ 0x1406ce6c4 // // 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 // // Hidden C++ exception states: #wind=1 void GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2) { __int64 v4; // rcx cocos2d::CCDirector *v5; // rax float v6; // xmm7_4 float v7; // xmm6_4 float v8; // xmm9_4 float v9; // xmm0_4 const cocos2d::ccColor3B *v10; // rax __int64 v11; // rax __int64 v12; // rbx const cocos2d::CCPoint *v13; // rax const cocos2d::CCPoint *v14; // rsi __int64 v15; // rcx cocos2d::CCPoint v16; // rax cocos2d::CCPoint v17; // rbx cocos2d::CCPoint v18; // rax cocos2d::CCLightning *v19; // rbx char v20[8]; // [rsp+28h] [rbp-70h] BYREF cocos2d::CCPoint v21; // [rsp+30h] [rbp-68h] BYREF cocos2d::CCPoint v22; // [rsp+38h] [rbp-60h] BYREF cocos2d::CCPoint v23; // [rsp+40h] [rbp-58h] BYREF cocos2d::CCPoint v24; // [rsp+48h] [rbp-50h] BYREF float v25; // [rsp+A8h] [rbp+10h] BYREF __int16 v26; // [rsp+B0h] [rbp+18h] BYREF GLubyte b; // [rsp+B2h] [rbp+1Ah] if ( !a2->m_hasNoEffects ) { ((void (__fastcall *)(CheckpointGameObject *, float *))a2->getRealPosition)(a2, &v25); v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(v5); v6 = v25 - 50.0; v7 = v25 + 100.0; v8 = (float)((float)((float)rand() / 32767.0) * (float)(v7 - v6)) + v6; v9 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::CCPoint(v9, v8); v10 = a2->m_colorSprite->getColor(&a2->m_colorSprite->cocos2d::CCRGBAProtocol); v26 = *(_WORD *)&v10->r; b = v10->b; cocos2d::CCPoint::CCPoint(&v21); v12 = v11; cocos2d::CCPoint::CCPoint(&v22); v14 = v13; cocos2d::CCPoint::operator-(v12, v20, v13); v15 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v23 = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v15 = qword_1406C2ED8; } if ( !*(_BYTE *)(v15 + 917) ) { cocos2d::CCPoint::CCPoint(&v23); v17 = v16; cocos2d::CCPoint::CCPoint(&v24); v19 = cocos2d::CCLightning::lightningWithStrikePoint(v18, v17, 0.5); v19->setPosition_0(v19, v14); v19->setColor(&v19->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v26); v19->m_lineWidth = 5.0; *(_WORD *)&v19->m_unkBool = 257; v19->m_opacityModify = 1.0; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v19, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source