// // GJBaseGameLayer::checkpointActivated from 0x100207ea0 to 0x100207fb8 (280 bytes) // // 3 xrefs: // > PlayLayer::checkpointActivated @ 0x10011f934 // > LevelEditorLayer::checkpointActivated @ 0x100363618 // > @ 0x1007c0c68 // // 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 __fastcall GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2) { CheckpointGameObject *v2; // x20 cocos2d::CCDirector *v4; // x0 float v5; // s8 float y; // s9 __n128 v7; // q0 __n128 v8; // q1 float v9; // s4 float v10; // s5 float v11; // s6 __int64 v12; // [xsp+8h] [xbp-58h] BYREF __int64 v13; // [xsp+10h] [xbp-50h] BYREF __int64 v14; // [xsp+18h] [xbp-48h] BYREF float v15; // [xsp+24h] [xbp-3Ch] __int64 v16; // [xsp+28h] [xbp-38h] BYREF cocos2d::CCPoint v17; // 0:s0.4,4:s1.4 cocos2d::CCPoint v18; // 0:s2.4,4:s3.4 if ( !a2->m_hasNoEffects ) { v2 = a2; ((void (__fastcall *)(__int64 *__return_ptr, CheckpointGameObject *))a2->getRealPosition)(&v16, a2); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5 = sub_1002FE590(*(float *)&v16 + -50.0, *(float *)&v16 + 100.0); y = a1->m_gameState.m_cameraPosition.y; v7.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer); v8.n128_f32[0] = y + (float)((float)(v15 + 50.0) / v7.n128_f32[0]); v7.n128_f32[0] = v5; sub_100022980(v7, v8, &v14); LOWORD(v2) = *(_WORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v2->m_colorSprite->getColor)(v2->m_colorSprite); sub_1000229B8(&v13, &v14); sub_1000229B8(&v12, &v16); v17.x = 5.0; v17.y = 0.5; v18.x = 1.0; GJBaseGameLayer::lightningFlash(a1, v17, v18, (cocos2d::ccColor3B)&v13, v9, v10, (int)&v12, (bool)v2, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source