// // cocos2d::CCLabelTTF::initWithString from 0x7d69a8 to 0x7d6a50 (168 bytes) // // 3 xrefs: // > cocos2d::CCLabelTTF::create @ 0x7d6a86 // > cocos2d::CCLabelTTF::initWithString @ 0x7d6ae8 // > cocos2d::CCLabelTTF::initWithString @ 0x7d6b00 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:39 +0000 // cocos2d::CCShaderCache *__fastcall cocos2d::CCLabelTTF::initWithString( float *a1, int a2, const char *a3, int a4, float *a5, int a6, int a7) { cocos2d::CCShaderCache *v11; // r0 cocos2d::CCShaderCache *v12; // r10 void (__fastcall *v13)(float *, int); // r11 cocos2d::CCShaderCache *v14; // r0 int v15; // r0 int *v16; // r5 size_t v17; // r0 int v18; // r3 float v20[2]; // [sp+4h] [bp-10h] BYREF v11 = (cocos2d::CCShaderCache *)cocos2d::CCSprite::init((cocos2d::CCSprite *)a1); v12 = v11; if ( v11 ) { v13 = *(void (__fastcall **)(float *, int))(*(_DWORD *)a1 + 332); v14 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v11); v15 = cocos2d::CCShaderCache::programForKey(v14, "ShaderPositionTextureColor"); v13(a1, v15); cocos2d::CCSize::CCSize(v20, *a5, a5[1]); cocos2d::CCSize::operator=(a1 + 128, v20); *((_DWORD *)a1 + 130) = a6; *((_DWORD *)a1 + 131) = a7; v16 = (int *)operator new(0xCu); *v16 = 0; v16[1] = 0; v16[2] = 0; v17 = strlen(a3); std::string::__init(v16, a3, v17); v18 = *(_DWORD *)a1; *((_DWORD *)a1 + 132) = v16; *((_DWORD *)a1 + 133) = a4; (*(void (__fastcall **)(float *, int))(v18 + 620))(a1, a2); } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source