// // cocos2d::CCTexture2D::initWithString from 0x10012db2c to 0x10012dd2c (512 bytes) // // 1 xrefs: // > cocos2d::CCLabelTTF::updateTexture @ 0x10006ea24 // // 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::CCTexture2D::initWithString( cocos2d::CCTexture2D *a1, const char *a2, cocos2d::ccFontDefinition *a3) { unsigned int v3; // s0 cocos2d::CCVerticalTextAlignment m_vertAlignment; // w8 cocos2d::CCTextAlignment v8; // w8 char v9; // w9 bool v10; // zf char v11; // w8 cocos2d::CCTextAlignment v12; // w8 cocos2d::CCTextAlignment m_alignment; // w8 unsigned __int8 v14; // w22 _BOOL4 m_shadowEnabled; // w23 float v16; // s8 float width; // s9 float height; // s10 float m_shadowBlur; // s11 float m_shadowOpacity; // s12 _BOOL4 m_strokeEnabled; // w25 float v22; // s13 float v23; // s14 float m_strokeSize; // s15 unsigned int v25; // s0 unsigned int v26; // s0 cocos2d::CCImage *v27; // x24 unsigned int v28; // s3 double v29; // d5 float v30; // s0 float v31; // s1 unsigned int v32; // w2 unsigned int v33; // w3 __int64 capacitym1; // x5 bool v35; // w19 m_vertAlignment = a3->m_vertAlignment; if ( m_vertAlignment == kCCVerticalTextAlignmentBottom ) { m_alignment = a3->m_alignment; if ( m_alignment ) v9 = 34; else v9 = 33; v10 = m_alignment == kCCTextAlignmentCenter; v11 = 35; } else if ( m_vertAlignment == kCCVerticalTextAlignmentCenter ) { v12 = a3->m_alignment; if ( v12 ) v9 = 50; else v9 = 49; v10 = v12 == kCCTextAlignmentCenter; v11 = 51; } else { if ( m_vertAlignment ) return 0; v8 = a3->m_alignment; if ( v8 ) v9 = 18; else v9 = 17; v10 = v8 == kCCTextAlignmentCenter; v11 = 19; } if ( v10 ) v14 = v11; else v14 = v9; m_shadowEnabled = a3->m_shadow.m_shadowEnabled; v16 = 0.0; width = 0.0; height = 0.0; m_shadowBlur = 0.0; m_shadowOpacity = 0.0; if ( m_shadowEnabled ) { width = a3->m_shadow.m_shadowOffset.width; height = a3->m_shadow.m_shadowOffset.height; m_shadowBlur = a3->m_shadow.m_shadowBlur; m_shadowOpacity = a3->m_shadow.m_shadowOpacity; } m_strokeEnabled = a3->m_stroke.m_strokeEnabled; v22 = 0.0; v23 = 0.0; m_strokeSize = 0.0; if ( m_strokeEnabled ) { LOBYTE(v3) = a3->m_stroke.m_strokeColor.r; *(float *)&v25 = (float)v3; v16 = *(float *)&v25 / 255.0; LOBYTE(v25) = a3->m_stroke.m_strokeColor.g; *(float *)&v26 = (float)v25; v22 = *(float *)&v26 / 255.0; LOBYTE(v26) = a3->m_stroke.m_strokeColor.b; m_strokeSize = a3->m_stroke.m_strokeSize; v23 = (float)v26 / 255.0; } v27 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage((__int64)v27); v30 = a3->m_dimensions.width; v31 = a3->m_dimensions.height; v32 = (int)v30; v33 = (int)v31; capacitym1 = (__int64)a3; if ( a3->m_fontName.m_data.m_short.shortStorage.__elems_[22] < 0 ) capacitym1 = a3->m_fontName.m_data.m_long.capacitym1; LOBYTE(v30) = a3->m_fontFillColor.r; LOBYTE(v31) = a3->m_fontFillColor.g; LOBYTE(v28) = a3->m_fontFillColor.b; *(float *)&v29 = m_shadowOpacity; if ( (unsigned int)cocos2d::CCImage::initWithStringShadowStroke( (__int64)v27, (__int64)a2, v32, v33, v14, capacitym1, a3->m_fontSize, m_shadowEnabled, (float)LODWORD(v30) / 255.0, (float)LODWORD(v31) / 255.0, (float)v28 / 255.0, width, height, v29, m_shadowBlur, v16, m_strokeEnabled, v22, v23, m_strokeSize) ) v35 = cocos2d::CCTexture2D::initWithImage(a1, v27); else v35 = 0; cocos2d::CCObject::release(v27); return v35; }
GD Web Decomp Icon

GD Web Decomp

Raw Source