//
// CommentCell::onDelete from 0x33719e to 0x3371ee (80 bytes)
//
// 1 xrefs:
// > CommentCell::FLAlert_Clicked @ 0x337214
//
// 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; // r0
GameLevelManager *v3; // r0
GJComment *m_comment; // r1
if ( a1->m_comment )
{
if ( a1->m_accountComment )
{
v3 = GameLevelManager::sharedState();
GameLevelManager::deleteAccountComment(v3, a1->m_comment->m_accountID, a1->m_comment->m_commentID);
}
else
{
v2 = GameLevelManager::sharedState();
GameLevelManager::deleteLevelComment(v2, 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);
}
}