// // GameLevelManager::invalidateMessages from 0x14015bcb0 to 0x14015bdfe (334 bytes) // // 8 xrefs: // > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14015ba85 // > GameLevelManager::onBlockUserCompleted @ 0x1401623c6 // > MessagesProfilePage::onUpdate @ 0x140337305 // > ProfilePage::init @ 0x1403be9a8 // > ProfilePage::init @ 0x1403be9ec // > ProfilePage::onUpdate @ 0x1403bfb0e // > ProfilePage::onUpdate @ 0x1403bfb52 // > @ 0x1406caa58 // // 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 // // Hidden C++ exception states: #wind=1 void GameLevelManager::invalidateMessages(GameLevelManager *a1, bool a2, bool a3) { BOOL v4; // r14d char v6; // di int v7; // ebx cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 const char *v11; // rdx void *v12; // rcx MessageListDelegate *m_messageListDelegate; // rcx __int128 v14; // [rsp+20h] [rbp-58h] BYREF __int64 v15; // [rsp+30h] [rbp-48h] unsigned __int64 v16; // [rsp+38h] [rbp-40h] v4 = a2; v6 = 1; v7 = 0; do { v8 = cocos2d::CCString::createWithFormat("messages_%i_%i", v4, v7); CString = cocos2d::CCString::getCString(v8); v14 = 0; v15 = 0; v16 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(&v14, CString, v10); v11 = (const char *)&v14; if ( v16 > 0xF ) v11 = (const char *)v14; if ( GameLevelManager::getStoredOnlineLevels(a1, v11) ) cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v14); else v6 = 0; ++v7; if ( v16 > 0xF ) { v12 = (void *)v14; if ( v16 + 1 >= 0x1000 ) { v12 = *(void **)(v14 - 8); if ( (unsigned __int64)(v14 - (_QWORD)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } } while ( v6 ); if ( a3 ) { m_messageListDelegate = a1->m_messageListDelegate; if ( m_messageListDelegate ) m_messageListDelegate->forceReloadMessages(m_messageListDelegate, v4); } }