// // cocos2d::extension::CCScale9Sprite::setCapInsets from 0x5a6304 to 0x5a6382 (126 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 cocos2d::extension::CCScale9Sprite::setCapInsets(cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCRect a2) { float x; // r9 cocos2d::CCSpriteBatchNode *scale9Image; // r11 _BOOL4 m_bSpriteFrameRotated; // r10 bool (__fastcall *updateWithBatchNode)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, bool, cocos2d::CCRect); // [sp+Ch] [bp-10h] cocos2d::CCSize v7; // [sp+14h] [bp-8h] BYREF cocos2d::CCRect v8; // [sp+1Ch] [bp+0h] BYREF cocos2d::CCRect v9; // [sp+2Ch] [bp+10h] BYREF x = a2.origin.x; if ( a1->_scale9Image ) { cocos2d::CCSize::CCSize(&v7, &a1->m_obContentSize); scale9Image = a1->_scale9Image; updateWithBatchNode = a1->updateWithBatchNode; cocos2d::CCRect::CCRect(&v8, &a1->m_spriteRect); m_bSpriteFrameRotated = a1->m_bSpriteFrameRotated; cocos2d::CCRect::CCRect(&v9, (const cocos2d::CCRect *)LODWORD(x)); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, _BOOL4, cocos2d::CCRect *))updateWithBatchNode)( a1, scale9Image, &v8, m_bSpriteFrameRotated, &v9); a1->setContentSize(a1, &v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source