// // GameLevelManager::invalidateMessages from 0x6f7448 to 0x6f75b4 (364 bytes) // // 8 xrefs: // > GameLevelManager::onDeleteUserMessagesCompleted @ 0x6f8458 // > GameLevelManager::onBlockUserCompleted @ 0x6fb298 // > MessagesProfilePage::onUpdate @ 0x8f1fb4 // > ProfilePage::onUpdate @ 0x8fdcb8 // > ProfilePage::onUpdate @ 0x8fdcc8 // > ProfilePage::init @ 0x8fe754 // > ProfilePage::init @ 0x8fe764 // > @ 0x79728 // // 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 GameLevelManager::invalidateMessages(GameLevelManager *a1, bool a2, bool a3) { _BOOL4 v4; // w23 int v5; // w20 _BOOL4 v6; // w27 char *MessagesKey; // x0 int v8; // w28 char *v9; // x0 MessageListDelegate *m_messageListDelegate; // x0 unsigned int *v11; // x1 int v12; // w2 std::string v13; // [xsp+70h] [xbp+70h] BYREF v4 = a2; v5 = 0; v6 = a3; do { while ( 1 ) { MessagesKey = (char *)GameLevelManager::getMessagesKey(a1, v4, v5); sub_D153B8((int)&v13, MessagesKey); if ( GameLevelManager::getStoredOnlineLevels(a1, (const char *)v13.m_data.m_data) ) { cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v13); v8 = 1; } else { v8 = 0; } ++v5; v9 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) break; } if ( !v8 ) goto LABEL_6; } operator delete(v9); } while ( v8 ); LABEL_6: if ( v6 ) { m_messageListDelegate = a1->m_messageListDelegate; if ( m_messageListDelegate ) m_messageListDelegate->forceReloadMessages(m_messageListDelegate, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source