// // cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x5a6aec to 0x5a6b74 (136 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 // cocos2d::extension::CCScale9Sprite *cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets( cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCRect a2) { float x; // r9 cocos2d::extension::CCScale9Sprite *v4; // r4 cocos2d::CCSpriteBatchNode *scale9Image; // r10 bool (__fastcall *initWithBatchNode_0)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, cocos2d::CCRect); // r8 cocos2d::CCRect v8; // [sp+4h] [bp-24h] BYREF cocos2d::CCRect v9; // [sp+14h] [bp-14h] BYREF x = a2.origin.x; v4 = (cocos2d::extension::CCScale9Sprite *)operator new(0x1A4u); cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v4); scale9Image = a1->_scale9Image; initWithBatchNode_0 = v4->initWithBatchNode_0; cocos2d::CCRect::CCRect(&v8, &a1->m_spriteRect); cocos2d::CCRect::CCRect(&v9, (const cocos2d::CCRect *)LODWORD(x)); if ( ((int (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, cocos2d::CCRect *))initWithBatchNode_0)( v4, scale9Image, &v8, &v9) ) { cocos2d::CCObject::autorelease(v4); return v4; } else { v4->~CCScale9Sprite_0(v4); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source