// // PlayLayer::playPlatformerEndAnimationToPos from 0x10011bcd4 to 0x10011bf24 (592 bytes) // // 1 xrefs: // > PlayLayer::activatePlatformerEndTrigger @ 0x10011bcbc // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall PlayLayer::playPlatformerEndAnimationToPos(PlayLayer *a1, cocos2d::CCPoint a2, bool a3) { char v3; // w2 char v4; // w20 EndTriggerGameObject *m_platformerEndTrigger; // x8 bool m_noEffects; // w25 bool m_isDualMode; // w26 char v9; // w21 __int64 v10; // x8 PlayerObject *v11; // x23 char v12; // w8 __int64 *v13; // x0 __n128 v14; // q0 __n128 v15; // q1 __n128 v16; // q0 __n128 v17; // q1 cocos2d::CCActionInterval *v18; // x0 cocos2d::CCEaseIn *v19; // x24 cocos2d::CCRotateBy *v20; // x0 cocos2d::CCEaseIn *v21; // x0 char v22; // w8 _BOOL8 v23; // [xsp+18h] [xbp-98h] double v24; // [xsp+20h] [xbp-90h] BYREF __int64 v25; // [xsp+28h] [xbp-88h] BYREF __int64 v26; // [xsp+30h] [xbp-80h] BYREF __int64 v27; // [xsp+38h] [xbp-78h] BYREF __int64 v28; // [xsp+40h] [xbp-70h] BYREF __int64 v29; // [xsp+48h] [xbp-68h] BYREF cocos2d::SEL_CallFunc v30; // 0:x1.16 v4 = v3; v23 = a3; m_platformerEndTrigger = a1->m_platformerEndTrigger; if ( m_platformerEndTrigger ) m_noEffects = m_platformerEndTrigger->m_noEffects; else m_noEffects = 0; sub_1000229D0(&a1->m_endPosition, (double *)a3); ((void (__fastcall *)(PlayLayer *, float))a1->updateTimeWarp)(a1, 1.0); GJBaseGameLayer::updateCameraOffsetX(a1, a1->m_gameState.m_cameraOffset.x, 0.0, 0, 0.0, -1, -1); GJBaseGameLayer::updateCameraOffsetY(a1, a1->m_gameState.m_cameraOffset.y, 0.0, 0, 0.0, -1, -1); m_isDualMode = a1->m_gameState.m_isDualMode; v9 = 1; do { while ( 1 ) { if ( (v9 & 1) != 0 ) v10 = 3272; else v10 = 3280; v11 = *(PlayerObject **)((char *)&a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v10); PlayerObject::lockPlayer(v11); PlayerObject::playingEndEffect(v11); if ( !m_noEffects ) PlayerObject::toggleGhostEffect(v11, Enabled); if ( (v4 & 1) != 0 ) break; v13 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))v11->getPosition)(v11); sub_1000229B8(&v29, v13); sub_1000229B8(&v28, (__int64 *)v23); sub_1000229B0(&v25); sub_1000229B0(&v26); sub_1000229B0(&v27); v15.n128_u32[0] = HIDWORD(v29); v14.n128_u32[0] = v29; sub_100022980(v14, v15, &v24); v16.n128_f64[0] = sub_1000229D0(&v26, &v24); v16.n128_f32[0] = *(float *)&v29 + (float)((float)(*(float *)&v28 - *(float *)&v29) * 0.5); v17.n128_f32[0] = *((float *)&v29 + 1) + (float)((float)(*((float *)&v28 + 1) - *((float *)&v29 + 1)) * 0.5); sub_100022980(v16, v17, &v24); sub_1000229D0(&v27, &v24); sub_1000229D0(&v25, (double *)&v28); v18 = (cocos2d::CCActionInterval *)cocos2d::CCBezierTo::create(&v25, 1.0); v19 = cocos2d::CCEaseIn::create(v18, 1.8); if ( (v9 & 1) != 0 ) { v30.ptr = (void (*)(void))PlayLayer::levelComplete; v30.adj = 0; cocos2d::CCCallFunc::create(a1, v30); v19 = (cocos2d::CCEaseIn *)sub_10018A494(v19); } cocos2d::CCNode::runAction(v11, v19); v20 = cocos2d::CCRotateBy::create_1(1.0, 360.0); v21 = cocos2d::CCEaseIn::create(v20, 1.8); cocos2d::CCNode::runAction(v11, v21); v22 = v9 & m_isDualMode; v9 = 0; if ( (v22 & 1) == 0 ) return; } v12 = v9 & m_isDualMode; v9 = 0; } while ( (v12 & 1) != 0 ); if ( (v4 & 1) != 0 ) PlayLayer::levelComplete(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source