// // cocos2d::CCTexture2D::initWithString from 0x1800a5c50 to 0x1800a5dbb (363 bytes) // // 3 xrefs: // > cocos2d::CCLabelTTF::updateTexture @ 0x18004e980 // > @ 0x1801438a8 // > @ 0x1801b7c80 // // 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 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCTexture2D::initWithString( cocos2d::CCTexture2D *this, const char *a2, char *a3, float a4, const struct cocos2d::CCSize *a5, enum cocos2d::CCTextAlignment a6, enum cocos2d::CCVerticalTextAlignment a7) { char v10; // si cocos2d::CCImage *v11; // rdi int v12; // ebx cocos2d::CCImage *v13; // rax unsigned int m_nWidth; // esi unsigned int m_nHeight; // ebx cocos2d::CCInteger *v16; // rax unsigned int Value; // eax char inited; // si v10 = 0; v11 = nullptr; if ( a7 ) { if ( a7 == kCCVerticalTextAlignmentCenter ) { if ( a6 == kCCTextAlignmentCenter ) v12 = 51; else v12 = (a6 != kCCTextAlignmentLeft) + 49; } else { if ( a7 != kCCVerticalTextAlignmentBottom ) return 0; if ( a6 == kCCTextAlignmentCenter ) v12 = 35; else v12 = (a6 != kCCTextAlignmentLeft) + 33; } } else if ( a6 == kCCTextAlignmentCenter ) { v12 = 19; } else { v12 = (a6 != kCCTextAlignmentLeft) + 17; } v13 = (cocos2d::CCImage *)operator new(0x50u); if ( v13 ) v11 = cocos2d::CCImage::CCImage(v13); if ( v11 ) { v10 = cocos2d::CCImage::initWithString((__int64)v11, a2, (int)a5->width, (int)a5->height, v12, a3, (int)a4); if ( v10 ) { m_nWidth = v11->m_nWidth; m_nHeight = v11->m_nHeight; v16 = (cocos2d::CCInteger *)cocos2d::CCConfiguration::sharedConfiguration(); Value = cocos2d::CCInteger::getValue(v16); if ( m_nWidth <= Value && m_nHeight <= Value ) { inited = cocos2d::CCTexture2D::initPremultipliedATextureWithImage(this, v11, m_nWidth, m_nHeight); cocos2d::CCObject::release(v11); return inited; } v10 = 0; cocos2d::CCObject::release(v11); } } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source