// // CommentCell::onLike from 0x60a9bc to 0x60aac0 (260 bytes) // // 3 xrefs: // > @ 0x57978 // > CommentCell::loadFromComment @ 0x617408 // > @ 0x122ad00 // // 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) { LikeItemType v3; // w21 int m_accountID; // w20 GameLevelManager *v5; // x0 int v6; // w4 GameLevelManager *v7; // x0 int v8; // w4 int m_userID; // w22 GameManager *v10; // x0 GJComment *m_comment; // x0 int v12; // w22 LikeItemLayer *v13; // x0 LikeItemLayer_vtbl *v14; // x2 GJAccountManager *v15; // x0 if ( a1->m_accountComment ) { v3 = AccountComment; m_accountID = a1->m_comment->m_accountID; v7 = GameLevelManager::sharedState(); if ( GameLevelManager::hasLikedItemFullCheck(v7, AccountComment, a1->m_comment->m_commentID, m_accountID, v8) ) return; } else { v3 = 2; m_accountID = a1->m_comment->m_levelID; v5 = GameLevelManager::sharedState(); if ( GameLevelManager::hasLikedItemFullCheck(v5, (LikeItemType)2, a1->m_comment->m_commentID, m_accountID, v6) ) return; } m_userID = a1->m_comment->m_userID; v10 = GameManager::sharedState(); if ( m_userID != v10->m_playerUserID.random - v10->m_playerUserID.seed ) { m_comment = a1->m_comment; v12 = m_comment->m_accountID; if ( !v12 ) { LABEL_7: v13 = LikeItemLayer::create(v3, m_comment->m_commentID, m_accountID); v14 = v13->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v13->m_likeDelegate = &a1->LikeItemDelegate; ((void (*)(void))v14->show)(); return; } v15 = GJAccountManager::sharedState(); if ( v12 != v15->m_accountID - v15->m_unkInt1 ) { m_comment = a1->m_comment; goto LABEL_7; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source