// // GameObject::getScalePosDelta from 0x14019c5a0 to 0x14019c6b5 (277 bytes) // // 7 xrefs: // > PlayerObject::postCollision @ 0x14038e5af // > PlayerObject::postCollision @ 0x14038e7cf // > PlayerObject::collidedWithObjectInternal @ 0x140391d44 // > PlayerObject::collidedWithObjectInternal @ 0x140391d53 // > PlayerObject::collidedWithObjectInternal @ 0x1403932ac // > PlayerObject::collidedWithObjectInternal @ 0x1403932c6 // > @ 0x1406cbd84 // // 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 GameObject::getScalePosDelta(GameObject *a1) { cocos2d::CCPoint *v1; // rdx float *v2; // rbx const struct cocos2d::CCRect *v4; // rax float width; // xmm2_4 float height; // xmm1_4 int v7; // eax cocos2d::CCRect v9; // [rsp+20h] [rbp-18h] BYREF v2 = (float *)v1; cocos2d::CCPoint::CCPoint(v1); v4 = a1->getObjectRect_0(a1); cocos2d::CCRect::CCRect(&v9, v4); if ( a1->m_isRotationAligned ) { width = v9.size.width; height = v9.size.height; } else { width = v9.size.height; height = v9.size.width; } if ( COERCE_INT(a1->m_scaleX * 10000.0) != COERCE_INT(a1->m_customScaleX * 10000.0) ) *v2 = (float)(height - (float)((float)(height / a1->m_scaleX) * a1->m_customScaleX)) * 0.5; if ( COERCE_INT(a1->m_scaleY * 10000.0) != COERCE_INT(a1->m_customScaleY * 10000.0) ) v2[1] = (float)(width - (float)((float)(width / a1->m_scaleY) * a1->m_customScaleY)) * 0.5; if ( a1->m_isRotationAligned ) { v7 = *((_DWORD *)v2 + 1); v2[1] = *v2; *(_DWORD *)v2 = v7; } return (cocos2d::CCPoint)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source