// // cocos2d::CCLabelTTF::getTextDefinition from 0x1003be150 to 0x1003be264 (276 bytes) // // 0 xrefs: // // 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 // cocos2d::ccFontDefinition *__fastcall cocos2d::CCLabelTTF::getTextDefinition(cocos2d::CCLabelTTF *a1) { char *v1; // rbx cocos2d::ccFontDefinition v3; // [rsp+0h] [rbp-70h] BYREF v1 = (char *)operator new(0x50u); *(_OWORD *)v1 = 0; *((_QWORD *)v1 + 2) = 0; *(_QWORD *)(v1 + 28) = 1; sub_10028CF90(v1 + 36); v1[46] = -1; *((_WORD *)v1 + 22) = -1; v1[48] = 0; sub_10028CF90(v1 + 52); v1[68] = 0; sub_10028CBF0((float *)&v3.m_fontName.m_data.m_short.sizex2, 0.0, 0.0); sub_10028CFF0(v1 + 36, &v3); cocos2d::CCLabelTTF::_prepareTextDefinition(&v3, a1, 0); if ( (*v1 & 1) != 0 ) operator delete(*((void **)v1 + 2)); *((_QWORD *)v1 + 2) = v3.m_fontName.m_data.m_long.longStorage; *(_OWORD *)v1 = *(_OWORD *)&v3.m_fontName.m_data.m_short.sizex2; *(_WORD *)&v3.m_fontName.m_data.m_short.sizex2 = 0; *((_DWORD *)v1 + 8) = v3.m_vertAlignment; *((_QWORD *)v1 + 3) = *(_QWORD *)&v3.m_fontSize; sub_10028CFF0(v1 + 36, &v3.m_dimensions); *(cocos2d::ccColor3B *)(v1 + 44) = v3.m_fontFillColor; v1[48] = v3.m_shadow.m_shadowEnabled; sub_10028CFF0(v1 + 52, &v3.m_shadow.m_shadowOffset); *(_OWORD *)(v1 + 60) = *(_OWORD *)&v3.m_shadow.m_shadowBlur; if ( (v3.m_fontName.m_data.m_short.sizex2 & 1) != 0 ) operator delete(v3.m_fontName.m_data.m_long.longStorage); return (cocos2d::ccFontDefinition *)v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source