//
// CommentCell::onDelete from 0x618998 to 0x618a2c (148 bytes)
//
// 2 xrefs:
// > CommentCell::FLAlert_Clicked @ 0x618a6c
// > ??> @ 0x7d4d8
//
// 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::onDelete(CommentCell *a1)
{
GameLevelManager *v2; // x0
GJComment *m_comment; // x1
GameLevelManager *v4; // x0
if ( a1->m_comment )
{
if ( a1->m_accountComment )
{
v2 = GameLevelManager::sharedState();
GameLevelManager::deleteAccountComment(v2, a1->m_comment->m_accountID, a1->m_comment->m_commentID);
}
else
{
v4 = GameLevelManager::sharedState();
GameLevelManager::deleteLevelComment(v4, a1->m_comment->m_levelID, a1->m_comment->m_commentID);
}
m_comment = a1->m_comment;
m_comment->m_commentDeleted = 1;
CommentCell::loadFromComment(a1, m_comment);
}
}