// // cocos2d::CCSpriteFrame::getTexture from 0x10024e500 to 0x10024e568 (104 bytes) // // 9 xrefs: // > CCSpriteWithHue::createWithSpriteFrame @ 0x1001a35a8 // > CCSpriteWithHue::initWithSpriteFrame @ 0x1001a3908 // > CCSpriteGrayscale::createWithSpriteFrame @ 0x1001a3efc // > cocos2d::extension::CCScale9Sprite::initWithSpriteFrame_1 @ 0x100215d28 // > cocos2d::extension::CCScale9Sprite::setSpriteFrame @ 0x100216238 // > cocos2d::CCSprite::initWithSpriteFrame @ 0x100237b30 // > cocos2d::CCSprite::setDisplayFrame @ 0x100239554 // > cocos2d::CCSprite::isFrameDisplayed @ 0x100239634 // > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x100253a48 // // 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 // cocos2d::CCTexture2D *__fastcall cocos2d::CCSpriteFrame::getTexture(cocos2d::CCSpriteFrame *a1) { cocos2d::CCTexture2D *result; // x0 std::string *p_m_strTextureFilename; // x20 cocos2d::CCTextureCache *v4; // x0 result = a1->m_pobTexture; if ( result ) return result; if ( (a1->m_strTextureFilename.m_data.m_short.shortStorage.__elems_[22] & 0x8000000000000000LL) != 0 ) { if ( a1->m_strTextureFilename.m_data.m_long.size ) goto LABEL_4; return nullptr; } if ( !a1->m_strTextureFilename.m_data.m_short.shortStorage.__elems_[22] ) return nullptr; LABEL_4: p_m_strTextureFilename = &a1->m_strTextureFilename; v4 = cocos2d::CCTextureCache::sharedTextureCache(); if ( a1->m_strTextureFilename.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_strTextureFilename = (std::string *)p_m_strTextureFilename->m_data.m_long.capacitym1; return cocos2d::CCTextureCache::addImage(v4, (const char *)p_m_strTextureFilename, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source