// // cocos2d::CCTexture2D::initWithString from 0x1800a9750 to 0x1800a98c1 (369 bytes) // // 3 xrefs: // > cocos2d::CCLabelTTF::updateTexture @ 0x18005077b // > @ 0x18014cf68 // > @ 0x1801c1f38 // // 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:22:17 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCTexture2D::initWithString( cocos2d::CCTexture2D *a1, const char *a2, char *a3, float a4, float *a5, int a6, int a7) { char v10; // si unsigned __int16 *v11; // rdi int v12; // ebx cocos2d::CCImage *v13; // rax unsigned int v14; // esi unsigned int v15; // ebx cocos2d::CCInteger *v16; // rax unsigned int Value; // eax char inited; // si v10 = 0; v11 = nullptr; if ( a7 ) { if ( a7 == 1 ) { if ( a6 == 1 ) v12 = 51; else v12 = (a6 != 0) + 49; } else { if ( a7 != 2 ) return 0; if ( a6 == 1 ) v12 = 35; else v12 = (a6 != 0) + 33; } } else if ( a6 == 1 ) { v12 = 19; } else { v12 = (a6 != 0) + 17; } v13 = (cocos2d::CCImage *)sub_1800E4AC0(0x50u); if ( v13 ) v11 = (unsigned __int16 *)cocos2d::CCImage::CCImage(v13); if ( v11 ) { v10 = cocos2d::CCImage::initWithString((__int64)v11, a2, (int)*a5, (int)a5[1], v12, a3, (int)a4); if ( v10 ) { v14 = v11[28]; v15 = v11[29]; v16 = cocos2d::CCConfiguration::sharedConfiguration(); Value = cocos2d::CCInteger::getValue(v16); if ( v14 <= Value && v15 <= Value ) { inited = cocos2d::CCTexture2D::initPremultipliedATextureWithImage(a1, (struct cocos2d::CCImage *)v11, v14, v15); cocos2d::CCObject::release((cocos2d::CCObject *)v11); return inited; } v10 = 0; cocos2d::CCObject::release((cocos2d::CCObject *)v11); } } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source