//
// CommentCell::onDelete from 0x100110f10 to 0x100110f70 (96 bytes)
//
// 2 xrefs:
// > CommentCell::FLAlert_Clicked @ 0x100110fd4
// > sub_100110FD8 @ 0x10011103c
//
// 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 __fastcall CommentCell::onDelete(CommentCell *a1)
{
bool m_accountComment; // w20
GameLevelManager *v3; // x0
GJComment *m_comment; // x8
int m_commentID; // w2
GJComment *v6; // x1
if ( a1->m_comment )
{
m_accountComment = a1->m_accountComment;
v3 = GameLevelManager::sharedState();
m_comment = a1->m_comment;
m_commentID = m_comment->m_commentID;
if ( m_accountComment )
GameLevelManager::deleteAccountComment(v3, m_comment->m_accountID, m_commentID);
else
GameLevelManager::deleteLevelComment(v3, m_comment->m_levelID, m_commentID);
v6 = a1->m_comment;
v6->m_commentDeleted = 1;
CommentCell::loadFromComment(a1, v6);
}
}