// // CommentCell::updateLabelValues from 0x61888c to 0x618940 (180 bytes) // // 3 xrefs: // > CommentCell::incrementLikes @ 0x618950 // > CommentCell::incrementDislikes @ 0x618964 // > @ 0x88710 // // 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 CommentCell::updateLabelValues(CommentCell *a1) { cocos2d::CCLabelBMFont *m_likeLabel; // x20 unsigned int m_likeCount; // w21 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x22 cocos2d::CCString *v5; // x0 const char *CString; // x0 cocos2d::CCSprite *m_iconSprite; // x19 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x20 cocos2d::CCSpriteFrameCache *v9; // x0 cocos2d::CCSpriteFrame *v10; // x0 cocos2d::CCSpriteFrameCache *v11; // x0 cocos2d::CCSpriteFrame *v12; // x0 m_likeLabel = a1->m_likeLabel; if ( m_likeLabel ) { m_likeCount = a1->m_comment->m_likeCount; setString = m_likeLabel->setString; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)m_likeCount); CString = cocos2d::CCString::getCString(v5); setString(m_likeLabel, (const unsigned __int8 *)CString); m_iconSprite = a1->m_iconSprite; setDisplayFrame = m_iconSprite->setDisplayFrame; if ( (m_likeCount & 0x80000000) != 0 ) { v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, "GJ_dislikesIcon_001.png"); setDisplayFrame(m_iconSprite, v12); } else { v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, "GJ_likesIcon_001.png"); setDisplayFrame(m_iconSprite, v10); } } }