// // cocos2d::CCSpriteFrame::initWithTextureFilename from 0x18008ff40 to 0x1800900f7 (439 bytes) // // 5 xrefs: // > cocos2d::CCSpriteFrame::copyWithZone @ 0x18008f8c2 // > cocos2d::CCSpriteFrame::create @ 0x18008fa09 // > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x18008ff18 // > @ 0x1801438a8 // > @ 0x1801b627c // // 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 // char __fastcall cocos2d::CCSpriteFrame::initWithTextureFilename( cocos2d::CCSpriteFrame *this, char *a2, const struct cocos2d::CCRect *a3, bool a4, struct cocos2d::CCPoint *a5, struct cocos2d::CCSize *a6) { size_t v9; // r8 cocos2d::CCDirector *v10; // rax float v11; // xmm8_4 cocos2d::CCDirector *v12; // rax float v13; // xmm7_4 cocos2d::CCDirector *v14; // rax float v15; // xmm6_4 cocos2d::CCDirector *v16; // rax float ContentScaleFactor; // xmm0_4 cocos2d::CCRect *v18; // rax cocos2d::CCDirector *v19; // rax float v20; // xmm6_4 cocos2d::CCDirector *v21; // rax float v22; // xmm0_4 float *v23; // rax cocos2d::CCDirector *v24; // rax float v25; // xmm6_4 cocos2d::CCDirector *v26; // rax float v27; // xmm0_4 float *v28; // rax cocos2d::CCRect v30; // [rsp+30h] [rbp-48h] BYREF float v31; // [rsp+80h] [rbp+8h] BYREF this->m_pobTexture = nullptr; v9 = -1; do ++v9; while ( a2[v9] ); sub_180010050((void **)&this->m_strTextureFilename, a2, v9); cocos2d::CCRect::operator=((float *)&this->m_obRectInPixels.origin, (float *)&a3->origin); v10 = cocos2d::CCDirector::sharedDirector(); v11 = a3->size.height / cocos2d::CCDirector::getContentScaleFactor(v10); v12 = cocos2d::CCDirector::sharedDirector(); v13 = a3->size.width / cocos2d::CCDirector::getContentScaleFactor(v12); v14 = cocos2d::CCDirector::sharedDirector(); v15 = a3->origin.y / cocos2d::CCDirector::getContentScaleFactor(v14); v16 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v16); v18 = cocos2d::CCRect::CCRect(&v30, a3->origin.x / ContentScaleFactor, v15, v13, v11); cocos2d::CCRect::operator=((float *)&this->m_obRect.origin, (float *)&v18->origin); cocos2d::CCSize::operator=(&this->m_obOffsetInPixels, a5); v19 = cocos2d::CCDirector::sharedDirector(); v20 = this->m_obOffsetInPixels.y / cocos2d::CCDirector::getContentScaleFactor(v19); v21 = cocos2d::CCDirector::sharedDirector(); v22 = cocos2d::CCDirector::getContentScaleFactor(v21); v23 = kmVec2Fill(&v31, this->m_obOffsetInPixels.x / v22, v20); cocos2d::CCSize::operator=(&this->m_obOffset, v23); cocos2d::CCSize::operator=(&this->m_obOriginalSizeInPixels, a6); v24 = cocos2d::CCDirector::sharedDirector(); v25 = this->m_obOriginalSizeInPixels.height / cocos2d::CCDirector::getContentScaleFactor(v24); v26 = cocos2d::CCDirector::sharedDirector(); v27 = cocos2d::CCDirector::getContentScaleFactor(v26); v28 = kmVec2Fill(&v31, this->m_obOriginalSizeInPixels.width / v27, v25); cocos2d::CCSize::operator=(&this->m_obOriginalSize, v28); this->m_bRotated = a4; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source