// // GJBaseGameLayer::getMoveTargetDelta from 0x85fe48 to 0x85ff8c (324 bytes) // // 2 xrefs: // > GJBaseGameLayer::triggerMoveCommand @ 0x874f54 // > @ 0x6a500 // // 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 // cocos2d::CCPoint GJBaseGameLayer::getMoveTargetDelta(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3) { cocos2d::CCPoint *v3; // x8 int m_targetModCenterID; // w1 cocos2d::CCPoint *v7; // x23 _BOOL4 v8; // w24 GameObject *MainObject; // x22 PlayerObject *m_player1; // x0 int m_centerGroupID; // w1 __int64 v14; // [xsp+58h] [xbp+58h] BYREF __int64 v15; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 m_targetModCenterID = a2->m_targetModCenterID; v7 = v3; v8 = a3; if ( m_targetModCenterID <= 0 ) m_targetModCenterID = a2->m_targetGroupID; if ( a3 ) MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_targetModCenterID); else MainObject = GJBaseGameLayer::tryGetObject(a1, m_targetModCenterID); if ( a2->m_targetPlayer1 ) { LABEL_8: m_player1 = a1->m_player1; goto LABEL_9; } if ( a2->m_targetPlayer2 ) { if ( a1->m_gameState.m_isDualMode ) { m_player1 = a1->m_player2; goto LABEL_9; } goto LABEL_8; } m_centerGroupID = a2->m_centerGroupID; if ( v8 ) m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetMainObject(a1, m_centerGroupID); else m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID); LABEL_9: if ( m_player1 && MainObject && MainObject->m_uniqueID != m_player1->m_uniqueID ) { m_player1->getRealPosition((PlayerObject *)&v14); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))MainObject->getRealPosition)(&v15, MainObject); cocos2d::CCPoint::operator-(v7, &v14, &v15); } else { cocos2d::CCPoint::CCPoint(v7, &stru_1242DA8); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source