// // cocos2d::CCSpriteFrame::initWithTexture from 0x180092db0 to 0x180092eb3 (259 bytes) // // 3 xrefs: // > cocos2d::CCSpriteFrame::createWithTexture @ 0x180092c64 // > @ 0x18014cf68 // > @ 0x1801c0510 // // 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:08 +0000 // bool __fastcall cocos2d::CCSpriteFrame::initWithTexture( cocos2d::CCSpriteFrame *this, struct cocos2d::CCTexture2D *a2, const struct cocos2d::CCRect *a3) { float v4; // xmm6_4 cocos2d::CCDirector *v7; // rax float v8; // xmm9_4 float v9; // xmm6_4 cocos2d::CCDirector *v10; // rax float v11; // xmm8_4 float v12; // xmm6_4 cocos2d::CCDirector *v13; // rax float v14; // xmm7_4 float v15; // xmm6_4 cocos2d::CCDirector *v16; // rax float ContentScaleFactor; // xmm0_4 _BYTE v19[8]; // [rsp+30h] [rbp-58h] BYREF _BYTE v20[8]; // [rsp+38h] [rbp-50h] BYREF v4 = *((float *)a3 + 3); v7 = cocos2d::CCDirector::sharedDirector(); v8 = cocos2d::CCDirector::getContentScaleFactor(v7) * v4; v9 = *((float *)a3 + 2); v10 = cocos2d::CCDirector::sharedDirector(); v11 = cocos2d::CCDirector::getContentScaleFactor(v10) * v9; v12 = *((float *)a3 + 1); v13 = cocos2d::CCDirector::sharedDirector(); v14 = cocos2d::CCDirector::getContentScaleFactor(v13) * v12; v15 = *(float *)a3; v16 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v16); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, ContentScaleFactor * v15, v14, v11, v8); return cocos2d::CCSpriteFrame::initWithTexture( this, a2, (const struct cocos2d::CCRect *)v19, 0, (const struct cocos2d::CCPoint *)&unk_1801B2848, (const struct cocos2d::CCSize *)v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source