// // cocos2d::CCLabelTTF::updateTexture from 0x180050660 to 0x180050812 (434 bytes) // // 9 xrefs: // > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x18004fac0 // > cocos2d::CCLabelTTF::setDimensions @ 0x1800504e2 // > cocos2d::CCLabelTTF::setFontName @ 0x180050566 // > cocos2d::CCLabelTTF::setFontSize @ 0x18005059f // > cocos2d::CCLabelTTF::setHorizontalAlignment @ 0x1800505c6 // > cocos2d::CCLabelTTF::setString @ 0x180050610 // > cocos2d::CCLabelTTF::setVerticalAlignment @ 0x180050656 // > @ 0x18014cf68 // > @ 0x1801bbf80 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:45 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCLabelTTF::updateTexture(cocos2d::CCLabelTTF *this) { cocos2d::CCTexture2D *v2; // rax cocos2d::CCObject *v3; // rbp _QWORD *v5; // rsi _QWORD *v6; // r14 float v7; // xmm6_4 cocos2d::CCDirector *v8; // rax float v9; // xmm9_4 float v10; // xmm6_4 cocos2d::CCDirector *v11; // rax float v12; // xmm7_4 cocos2d::CCDirector *v13; // rax _DWORD *v14; // rax _BYTE v15[8]; // [rsp+40h] [rbp-68h] BYREF _DWORD v16[10]; // [rsp+48h] [rbp-60h] BYREF cocos2d::CCTexture2D *v17; // [rsp+B8h] [rbp+10h] BYREF v2 = (cocos2d::CCTexture2D *)sub_1800E4AC0(0x68u); v17 = v2; if ( v2 ) v3 = (cocos2d::CCObject *)cocos2d::CCTexture2D::CCTexture2D(v2); else v3 = nullptr; if ( !v3 ) return 0; v5 = *((_QWORD **)this + 78); if ( v5[3] > 0xFu ) v5 = (_QWORD *)*v5; v6 = (_QWORD *)((char *)this + 640); if ( *((_QWORD *)this + 83) > 0xFu ) v6 = (_QWORD *)*v6; v7 = *((float *)this + 153); v8 = cocos2d::CCDirector::sharedDirector(); v9 = cocos2d::CCDirector::getContentScaleFactor(v8) * v7; v10 = *((float *)this + 152); v11 = cocos2d::CCDirector::sharedDirector(); v12 = cocos2d::CCDirector::getContentScaleFactor(v11) * v10; v13 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getContentScaleFactor(v13); kmVec2Fill((float *)&v17, v12, v9); cocos2d::CCTexture2D::initWithString(v3, v6, v5); (*(void (__fastcall **)(char *, cocos2d::CCObject *))(*((_QWORD *)this + 43) + 24LL))((char *)this + 344, v3); cocos2d::CCObject::release(v3); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15, (const struct cocos2d::CCRect *)&unk_1801B23E8); v14 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCTexture2D **))(**((_QWORD **)this + 52) + 136LL))( *((_QWORD *)this + 52), &v17); cocos2d::CCSize::operator=(v16, v14); (*(void (__fastcall **)(cocos2d::CCLabelTTF *, _BYTE *))(*(_QWORD *)this + 992LL))(this, v15); return 1; }