// // GJBaseGameLayer::getMoveTargetDelta from 0x1001eb488 to 0x1001eb5a4 (284 bytes) // // 1 xrefs: // > GJBaseGameLayer::triggerMoveCommand @ 0x1001ee89c // // 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 __fastcall GJBaseGameLayer::getMoveTargetDelta(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3) { float32x2_t *v3; // x8 _BOOL4 v4; // w22 float32x2_t *v7; // x19 int m_targetModCenterID; // w1 GameObject *MainObject; // x0 GameObject *v10; // x20 PlayerObject *m_player1; // x0 int m_centerGroupID; // w1 float32x2_t v15; // [xsp+0h] [xbp-40h] BYREF float32x2_t v16; // [xsp+8h] [xbp-38h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = a3; v7 = v3; m_targetModCenterID = a2->m_targetModCenterID; if ( m_targetModCenterID <= 0 ) m_targetModCenterID = a2->m_targetGroupID; if ( a3 ) MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_targetModCenterID); else MainObject = GJBaseGameLayer::tryGetObject(a1, m_targetModCenterID); v10 = MainObject; if ( a2->m_targetPlayer1 ) { LABEL_7: m_player1 = a1->m_player1; goto LABEL_8; } if ( a2->m_targetPlayer2 ) { if ( a1->m_gameState.m_isDualMode ) { m_player1 = a1->m_player2; goto LABEL_8; } goto LABEL_7; } m_centerGroupID = a2->m_centerGroupID; if ( v4 ) m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetMainObject(a1, m_centerGroupID); else m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID); LABEL_8: if ( v10 && m_player1 && v10->m_uniqueID != m_player1->m_uniqueID ) { ((void (__fastcall *)(float32x2_t *__return_ptr))m_player1->getRealPosition)(&v16); ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *))v10->getRealPosition)(&v15, v10); result.x = sub_1000229F0(&v16, &v15, v7).f32[0]; } else { result.x = sub_1000229B8((__int64 *)v7, &qword_10086C9A0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source