// // GameObject::getScalePosDelta from 0x10025d24c to 0x10025d348 (252 bytes) // // 6 xrefs: // > PlayerObject::postCollision @ 0x10021f350 // > PlayerObject::postCollision @ 0x10021f510 // > PlayerObject::collidedWithObjectInternal @ 0x100221a00 // > PlayerObject::collidedWithObjectInternal @ 0x100221a2c // > PlayerObject::collidedWithObjectInternal @ 0x100222480 // > PlayerObject::collidedWithObjectInternal @ 0x10022253c // // 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 GameObject::getScalePosDelta(GameObject *a1) { __int64 *v1; // x8 int32x2_t *v3; // x19 float v4; // s0 __int64 v5; // x0 _BOOL4 m_isRotationAligned; // w8 float m_scaleX; // s1 float m_customScaleX; // s2 float m_customScaleY; // s2 int32x2_t v11; // d0 float v12; // s0 __int64 v13; // [xsp+0h] [xbp-20h] BYREF int32x2_t v14; // [xsp+8h] [xbp-18h] cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = (int32x2_t *)v1; v4 = sub_1000229B8(v1, (__int64 *)&stru_10086D4E0); v5 = ((__int64 (__fastcall *)(GameObject *, float))a1->getObjectRect)(a1, v4); sub_100022B98(&v13, v5); m_isRotationAligned = a1->m_isRotationAligned; if ( m_isRotationAligned ) v14 = vrev64_s32(v14); m_scaleX = a1->m_scaleX; m_customScaleX = a1->m_customScaleX; if ( COERCE_INT(m_scaleX * 10000.0) != COERCE_INT(m_customScaleX * 10000.0) ) *(float *)v3->i32 = (float)(*(float *)v14.i32 - (float)(m_customScaleX * (float)(*(float *)v14.i32 / m_scaleX))) * 0.5; result.y = a1->m_scaleY; m_customScaleY = a1->m_customScaleY; *(float *)v11.i32 = m_customScaleY * 10000.0; if ( COERCE_INT(result.y * 10000.0) != COERCE_INT(m_customScaleY * 10000.0) ) { v12 = *(float *)&v14.i32[1] - (float)(m_customScaleY * (float)(*(float *)&v14.i32[1] / result.y)); result.y = 0.5; *(float *)v11.i32 = v12 * 0.5; v3->i32[1] = v11.i32[0]; } if ( m_isRotationAligned ) { v11 = vrev64_s32(*v3); *v3 = v11; } result.x = *(float *)v11.i32; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source