// // GJMessageCell::markAsRead from 0x61d7a0 to 0x61d83c (156 bytes) // // 3 xrefs: // > GJMessageCell::onViewMessage @ 0x61d854 // > GJMessageCell::FLAlert_Clicked @ 0x61d904 // > @ 0x8d120 // // 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 GJMessageCell::markAsRead(GJMessageCell *a1) { GJUserMessage *m_message; // x2 cocos2d::CCLayer *m_mainLayer; // x3 __int64 v3; // x0 GameLevelManager *v4; // x19 GJAccountManager *v5; // x0 GJUserScore *v6; // x0 int v7; // w1 m_message = a1->m_message; if ( !m_message->m_read ) { m_mainLayer = a1->m_mainLayer; m_message->m_read = 1; v3 = (__int64)m_mainLayer->getChildByTag(m_mainLayer, 100); if ( v3 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 328LL))(v3, 0); v4 = GameLevelManager::sharedState(); v5 = GJAccountManager::sharedState(); v6 = GameLevelManager::userInfoForAccountID(v4, v5->m_accountID - v5->m_unkInt1); if ( v6 ) { v7 = v6->m_newMsgCount - 1; if ( v7 < 0 ) v7 = 0; v6->m_newMsgCount = v7; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source