// // cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0xaa0e14 to 0xaa0ef0 (220 bytes) // // 2 xrefs: // > @ 0xb47f8 // > @ 0x11f8240 // // 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 // // local variable allocation has failed, the output may be wrong! bool cocos2d::extension::CCScale9Sprite::initWithBatchNode( cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCSpriteBatchNode *a2, cocos2d::CCRect a3, bool a4, cocos2d::CCRect a5) { unsigned __int8 v5; // w3 cocos2d::CCRect *v6; // x4 unsigned int v9; // w24 bool (__fastcall *updateWithBatchNode)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, bool, cocos2d::CCRect); // x25 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCRect *v13; // [xsp+58h] [xbp+58h] cocos2d::CCRect v14; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCRect v15; // [xsp+78h] [xbp+78h] BYREF v13 = v6; v9 = v5; if ( a2 ) { updateWithBatchNode = a1->updateWithBatchNode; cocos2d::CCRect::CCRect(&v14, (const cocos2d::CCRect *)a4); cocos2d::CCRect::CCRect(&v15, v13); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, _QWORD, cocos2d::CCRect *))updateWithBatchNode)( a1, a2, &v14, v9, &v15); setAnchorPoint = a1->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v15.origin, 0.5, 0.5); setAnchorPoint(a1, &v15.origin); } a1->m_positionsAreDirty = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source