// // cocos2d::CCSpriteFrame::setOffsetInPixels from 0x5e8ec8 to 0x5e8f38 (112 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::CCSpriteFrame::setOffsetInPixels(cocos2d::CCSpriteFrame *a1, const cocos2d::CCPoint *a2) { int v2; // r2 float x; // s17 cocos2d::CCDirector *v5; // r0 float v6; // r0 float y; // s16 float v8; // s17 cocos2d::CCDirector *v9; // r0 float v10; // r0 int v11; // r2 bool v12; // r3 cocos2d::CCPoint v13; // [sp+4h] [bp-Ch] BYREF cocos2d::CCPoint::operator=(&a1->m_obOffsetInPixels, &a2->x, v2, _stack_chk_guard); x = a1->m_obOffsetInPixels.x; v5 = cocos2d::CCDirector::sharedDirector(); v6 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v5)); y = a1->m_obOffsetInPixels.y; v8 = x / v6; v9 = cocos2d::CCDirector::sharedDirector(); v10 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v9)); cocos2d::CCPoint::CCPoint(&v13, v8, y / v10); cocos2d::CCPoint::operator=(&a1->m_obOffset, &v13.x, v11, v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source