// // ShareCommentLayer::updateCharCountLabel from 0x431bc8 to 0x431c80 (184 bytes) // // 1 xrefs: // > ShareCommentLayer::updateDescText @ 0x431caa // // 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 // void ShareCommentLayer::updateCharCountLabel(ShareCommentLayer *a1) { int v2; // r5 int m_charLimit; // r6 cocos2d::CCLabelBMFont *m_charCountLabel; // r0 cocos2d::CCLabelBMFont *v5; // r4 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7 cocos2d::CCString *v7; // r0 const char *CString; // r0 v2 = *((_DWORD *)a1->m_descText.m_data.m_data - 3); m_charLimit = a1->m_charLimit; m_charCountLabel = a1->m_charCountLabel; if ( (float)v2 >= (float)((float)m_charLimit * 0.7) ) ((void (*)(void))m_charCountLabel->setOpacity)(); else m_charCountLabel->setOpacity(m_charCountLabel, 125); ((void (*)(void))a1->m_charCountLabel->setColor)(); v5 = a1->m_charCountLabel; setString = v5->setString; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(m_charLimit - v2)); CString = cocos2d::CCString::getCString(v7); setString(v5, (const unsigned __int8 *)CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source