// // cocos2d::CCSpriteFrame::setRectInPixels from 0x180093560 to 0x18009363b (219 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801c0564 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:09 +0000 // void __fastcall cocos2d::CCSpriteFrame::setRectInPixels(cocos2d::CCSpriteFrame *this, const struct cocos2d::CCRect *a2) { cocos2d::CCDirector *v4; // rax float ContentScaleFactor; // xmm0_4 float v6; // xmm8_4 float v7; // xmm9_4 cocos2d::CCDirector *v8; // rax float v9; // xmm0_4 float v10; // xmm7_4 float v11; // xmm8_4 cocos2d::CCDirector *v12; // rax float v13; // xmm0_4 float v14; // xmm6_4 float v15; // xmm7_4 cocos2d::CCDirector *v16; // rax float v17; // xmm0_4 cocos2d::CCRect *v18; // rax _BYTE v19[16]; // [rsp+30h] [rbp-58h] BYREF cocos2d::CCRect::operator=((__int64)this + 72, (__int64)a2); v4 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v4); v6 = *((float *)a2 + 2); v7 = *((float *)a2 + 3) / ContentScaleFactor; v8 = cocos2d::CCDirector::sharedDirector(); v9 = cocos2d::CCDirector::getContentScaleFactor(v8); v10 = *((float *)a2 + 1); v11 = v6 / v9; v12 = cocos2d::CCDirector::sharedDirector(); v13 = cocos2d::CCDirector::getContentScaleFactor(v12); v14 = *(float *)a2; v15 = v10 / v13; v16 = cocos2d::CCDirector::sharedDirector(); v17 = cocos2d::CCDirector::getContentScaleFactor(v16); v18 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, v14 / v17, v15, v11, v7); cocos2d::CCRect::operator=((__int64)this + 92, (__int64)v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source