// // ShareCommentLayer::updateCharCountLabel from 0x7e6918 to 0x7e6a10 (248 bytes) // // 2 xrefs: // > ShareCommentLayer::updateDescText @ 0x7e6a3c // > @ 0x45348 // // 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 m_charLimit; // w21 __int64 v3; // x20 void (*setOpacity)(void); // x2 cocos2d::CCLabelBMFont *m_charCountLabel; // x19 const char *v6; // x1 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x20 cocos2d::CCString *v8; // x0 const char *CString; // x0 m_charLimit = a1->m_charLimit; v3 = *((_QWORD *)a1->m_descText.m_data.m_data - 3); if ( (float)(int)v3 < (float)((float)m_charLimit * 0.7) ) { setOpacity = (void (*)(void))a1->m_charCountLabel->setOpacity; goto LABEL_5; } setOpacity = (void (*)(void))a1->m_charCountLabel->setOpacity; if ( (float)(int)v3 < (float)((float)m_charLimit * 0.9) ) { LABEL_5: setOpacity(); a1->m_charCountLabel->setColor(a1->m_charCountLabel, (const cocos2d::ccColor3B *)&unk_ED4498); goto LABEL_6; } setOpacity(); a1->m_charCountLabel->setColor(a1->m_charCountLabel, (const cocos2d::ccColor3B *)&unk_ED44A0); LABEL_6: m_charCountLabel = a1->m_charCountLabel; v6 = (const char *)(unsigned int)(m_charLimit - v3); setString = m_charCountLabel->setString; v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v6); CString = cocos2d::CCString::getCString(v8); setString(m_charCountLabel, (const unsigned __int8 *)CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source