// // CommentCell::onLike from 0x32f628 to 0x32f6c0 (152 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 // void CommentCell::onLike(CommentCell *a1, cocos2d::CCObject *a2) { GJComment *m_comment; // r3 int m_accountID; // r5 LikeItemType v5; // r6 GameLevelManager *v6; // r0 int m_userID; // r7 GameManager *v8; // r0 int v9; // r7 GJAccountManager *v10; // r0 LikeItemLayer *v11; // r0 LikeItemLayer_vtbl *v12; // r3 int savedregs; // [sp+0h] [bp+0h] m_comment = a1->m_comment; if ( a1->m_accountComment ) { m_accountID = m_comment->m_accountID; v5 = AccountComment; } else { m_accountID = m_comment->m_levelID; v5 = 2; } if ( m_comment ) { v6 = GameLevelManager::sharedState(); if ( !GameLevelManager::hasLikedItemFullCheck(v6, v5, a1->m_comment->m_commentID, m_accountID, savedregs) ) { m_userID = a1->m_comment->m_userID; v8 = GameManager::sharedState(); if ( m_userID != v8->m_playerUserID.random - v8->m_playerUserID.seed ) { v9 = a1->m_comment->m_accountID; if ( !v9 || (v10 = GJAccountManager::sharedState(), v9 != v10->m_accountID - v10->m_unkInt1) ) { v11 = LikeItemLayer::create(v5, a1->m_comment->m_commentID, m_accountID); v12 = v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v11->m_likeDelegate = &a1->LikeItemDelegate; ((void (*)(void))v12->show)(); } } } } }