// // GJUINode::updateButtonPositions from 0x1004cae00 to 0x1004caede (222 bytes) // // 0 xrefs: // // 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 // void __fastcall GJUINode::updateButtonPositions(GJUINode *a1) { cocos2d::CCSprite *m_firstSprite; // rax cocos2d::CCSprite_vtbl *v2; // rcx float v3; // xmm0_4 cocos2d::CCSprite *v4; // rbx cocos2d::CCSprite *m_secondSprite; // rbx float v6; // [rsp-30h] [rbp-30h] BYREF float m_radius; // [rsp-28h] [rbp-28h] float v8; // [rsp-24h] [rbp-24h] if ( a1->m_secondSprite ) { m_firstSprite = a1->m_firstSprite; v2 = m_firstSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a1->m_modeB ) { ((void (__fastcall *)(cocos2d::CCSprite *, double *))v2->setPosition)(a1->m_firstSprite, &dbl_1009A2038); } else { v3 = ((float (__fastcall *)(cocos2d::CCSprite *))v2->getScale)(m_firstSprite); v4 = a1->m_firstSprite; v8 = v3 * v4->m_obRect.size.width; m_radius = a1->m_radius; sub_10028CBE0(&v6, (float)(-0.5 * v8) - m_radius, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v4->setPosition)(v4, &v6); m_secondSprite = a1->m_secondSprite; sub_10028CBE0(&v6, (float)(v8 * 0.5) + m_radius, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float *))m_secondSprite->setPosition)(m_secondSprite, &v6); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source