// // ShareCommentLayer::updateCharCountLabel from 0x1001d5b70 to 0x1001d5c6c (252 bytes) // // 4 xrefs: // > ShareCommentLayer::init @ 0x1001d51b0 // > ShareCommentLayer::onClear @ 0x1001d5494 // > ShareCommentLayer::textInputClosed @ 0x1001d5a3c // > ShareCommentLayer::textChanged @ 0x1001d5b00 // // 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 __fastcall ShareCommentLayer::updateCharCountLabel(ShareCommentLayer *a1) { std::size_t size; // x20 int m_charLimit; // w21 cocos2d::CCLabelBMFont *m_charCountLabel; // x19 cocos2d::CCString *v5; // x0 const char *CString; // x1 size = a1->m_descText.m_data.m_short.shortStorage.__elems_[22]; if ( (size & 0x8000000000000000LL) != 0 ) size = a1->m_descText.m_data.m_long.size; m_charLimit = a1->m_charLimit; if ( (float)((float)m_charLimit * 0.7) <= (float)(int)size ) ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_charCountLabel->setOpacity)( a1->m_charCountLabel, 255); else ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_charCountLabel->setOpacity)( a1->m_charCountLabel, 125); ((void (*)(void))a1->m_charCountLabel->setColor)(); m_charCountLabel = a1->m_charCountLabel; v5 = (cocos2d::CCString *)sub_100268F4C("%i", m_charLimit - (int)size); CString = cocos2d::CCString::getCString(v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_charCountLabel->setString)(m_charCountLabel, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source