// // cocos2d::CCSpriteFrame::setRectInPixels from 0x1800902a0 to 0x180090363 (195 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801b62ac // // 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 __fastcall cocos2d::CCSpriteFrame::setRectInPixels(cocos2d::CCSpriteFrame *this, const struct cocos2d::CCRect *a2) { cocos2d::CCDirector *v4; // rax float v5; // xmm8_4 cocos2d::CCDirector *v6; // rax float v7; // xmm7_4 cocos2d::CCDirector *v8; // rax float v9; // xmm6_4 cocos2d::CCDirector *v10; // rax float ContentScaleFactor; // xmm0_4 cocos2d::CCRect *v12; // rax cocos2d::CCRect v13; // [rsp+30h] [rbp-48h] BYREF cocos2d::CCRect::operator=((float *)&this->m_obRectInPixels.origin, (float *)&a2->origin); v4 = cocos2d::CCDirector::sharedDirector(); v5 = a2->size.height / cocos2d::CCDirector::getContentScaleFactor(v4); v6 = cocos2d::CCDirector::sharedDirector(); v7 = a2->size.width / cocos2d::CCDirector::getContentScaleFactor(v6); v8 = cocos2d::CCDirector::sharedDirector(); v9 = a2->origin.y / cocos2d::CCDirector::getContentScaleFactor(v8); v10 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v10); v12 = cocos2d::CCRect::CCRect(&v13, a2->origin.x / ContentScaleFactor, v9, v7, v5); cocos2d::CCRect::operator=((float *)&this->m_obRect.origin, (float *)&v12->origin); }
GD Web Decomp Icon

GD Web Decomp

Raw Source