// // cocos2d::extension::CCScale9Sprite::updatePositions from 0x5a6448 to 0x5a67c2 (890 bytes) // // 1 xrefs: // > cocos2d::extension::CCScale9Sprite::visit @ 0x5a6d5e // // 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 cocos2d::extension::CCScale9Sprite::updatePositions(cocos2d::extension::CCScale9Sprite *a1) { float width; // s16 float v3; // s16 const cocos2d::CCSize *v4; // r0 float height; // s17 float v6; // s16 float v7; // s17 float v8; // s17 float v9; // s16 float v10; // s17 float v11; // s19 float v12; // s18 float v13; // s21 const cocos2d::CCSize *v14; // r0 cocos2d::CCSprite *bottomLeft; // r7 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 float v17; // s20 cocos2d::CCSprite *bottomRight; // r7 void (__fastcall *v19)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *topLeft; // r7 void (__fastcall *v21)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *topRight; // r7 void (__fastcall *v23)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *left; // r7 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *right; // r7 void (__fastcall *v27)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *top; // r7 void (__fastcall *v29)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *bottom; // r7 void (__fastcall *v31)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *centre; // r7 void (__fastcall *v33)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v34; // r7 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 float v36; // s19 cocos2d::CCSprite *v37; // r7 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 float v39; // s18 cocos2d::CCSprite *v40; // r7 void (__fastcall *v41)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v42; // r7 void (__fastcall *v43)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v44; // r7 void (__fastcall *v45)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v46; // r7 void (__fastcall *v47)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v48; // r7 void (__fastcall *v49)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v50; // r7 void (__fastcall *v51)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v52; // r4 void (__fastcall *v53)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSize v54; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v55; // [sp+Ch] [bp-Ch] BYREF if ( a1->_topLeft && a1->_topRight && a1->_bottomRight && a1->_bottomLeft ) { if ( a1->_centre ) { cocos2d::CCSize::CCSize(&v54, &a1->m_obContentSize); width = v54.width; v3 = width - a1->_topLeft->getContentSize(a1->_topLeft)->width; v4 = a1->_topRight->getContentSize(a1->_topRight); height = v54.height; v6 = v3 - v4->width; v7 = height - a1->_topLeft->getContentSize(a1->_topLeft)->height; v8 = v7 - a1->_bottomRight->getContentSize(a1->_bottomRight)->height; v9 = v6 / a1->_centre->getContentSize(a1->_centre)->width; v10 = v8 / a1->_centre->getContentSize(a1->_centre)->height; ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_centre->setScaleX)(a1->_centre, LODWORD(v9)); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_centre->setScaleY)(a1->_centre, LODWORD(v10)); v11 = a1->_centre->getContentSize(a1->_centre)->width; v12 = a1->_centre->getContentSize(a1->_centre)->height; v13 = a1->_bottomLeft->getContentSize(a1->_bottomLeft)->width; v14 = a1->_bottomLeft->getContentSize(a1->_bottomLeft); bottomLeft = a1->_bottomLeft; setAnchorPoint = bottomLeft->setAnchorPoint; v17 = v14->height; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); setAnchorPoint(bottomLeft, &v55); bottomRight = a1->_bottomRight; v19 = bottomRight->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v19(bottomRight, &v55); topLeft = a1->_topLeft; v21 = topLeft->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v21(topLeft, &v55); topRight = a1->_topRight; v23 = topRight->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v23(topRight, &v55); left = a1->_left; v25 = left->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v25(left, &v55); right = a1->_right; v27 = right->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v27(right, &v55); top = a1->_top; v29 = top->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v29(top, &v55); bottom = a1->_bottom; v31 = bottom->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v31(bottom, &v55); centre = a1->_centre; v33 = centre->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); v33(centre, &v55); v34 = a1->_bottomLeft; setPosition = v34->setPosition; cocos2d::CCPoint::CCPoint(&v55, 0.0, 0.0); setPosition(v34, &v55); v36 = v13 + (float)(v9 * v11); v37 = a1->_bottomRight; v38 = v37->setPosition; cocos2d::CCPoint::CCPoint(&v55, v36, 0.0); v38(v37, &v55); v39 = v17 + (float)(v10 * v12); v40 = a1->_topLeft; v41 = v40->setPosition; cocos2d::CCPoint::CCPoint(&v55, 0.0, v39); v41(v40, &v55); v42 = a1->_topRight; v43 = v42->setPosition; cocos2d::CCPoint::CCPoint(&v55, v36, v39); v43(v42, &v55); v44 = a1->_left; v45 = v44->setPosition; cocos2d::CCPoint::CCPoint(&v55, 0.0, v17); v45(v44, &v55); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_left->setScaleY)(a1->_left, LODWORD(v10)); v46 = a1->_right; v47 = v46->setPosition; cocos2d::CCPoint::CCPoint(&v55, v36, v17); v47(v46, &v55); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_right->setScaleY)(a1->_right, LODWORD(v10)); v48 = a1->_bottom; v49 = v48->setPosition; cocos2d::CCPoint::CCPoint(&v55, v13, 0.0); v49(v48, &v55); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_bottom->setScaleX)(a1->_bottom, LODWORD(v9)); v50 = a1->_top; v51 = v50->setPosition; cocos2d::CCPoint::CCPoint(&v55, v13, v39); v51(v50, &v55); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->_top->setScaleX)(a1->_top, LODWORD(v9)); v52 = a1->_centre; v53 = v52->setPosition; cocos2d::CCPoint::CCPoint(&v55, v13, v17); v53(v52, &v55); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source