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

GD Web Decomp

Raw Source