// // cocos2d::CCLabelTTF::updateTexture from 0x10006e9d8 to 0x10006eab0 (216 bytes) // // 1 xrefs: // > cocos2d::CCLabelTTF::setString @ 0x10006e9c8 // // 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 // bool __fastcall cocos2d::CCLabelTTF::updateTexture(cocos2d::CCLabelTTF *a1) { cocos2d::CCTexture2D *v2; // x20 std::string *p_m_string; // x1 double v4; // d0 double v5; // d0 __int64 v7; // [xsp+8h] [xbp-78h] BYREF __int64 v8; // [xsp+10h] [xbp-70h] BYREF __int64 v9; // [xsp+18h] [xbp-68h] BYREF cocos2d::ccFontDefinition __p; // [xsp+20h] [xbp-60h] BYREF v2 = (cocos2d::CCTexture2D *)operator new(0x68u); j_cocos2d::CCTexture2D::CCTexture2D(); cocos2d::CCLabelTTF::_prepareTextDefinition(&__p, a1, 1); p_m_string = &a1->m_string; if ( a1->m_string.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_string = (std::string *)p_m_string->m_data.m_long.capacitym1; cocos2d::CCTexture2D::initWithString(v2, (const char *)p_m_string, &__p); ((void (__fastcall *)(cocos2d::CCLabelTTF *, cocos2d::CCTexture2D *))a1->setTexture)(a1, v2); cocos2d::CCObject::release(v2); v4 = sub_100022B98(&v8, (__int64)&unk_10086AB40); ((void (__fastcall *)(__int64 *__return_ptr, double))a1->m_pobTexture->getContentSize)(&v7, v4); v5 = sub_100022B14(&v9, (double *)&v7); ((void (__fastcall *)(cocos2d::CCLabelTTF *, __int64 *, double))a1->setTextureRect)(a1, &v8, v5); if ( __p.m_fontName.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)__p.m_fontName.m_data.m_long.capacitym1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source