// // GameLevelManager::resetStoredUserList from 0x6fab20 to 0x6fac8c (364 bytes) // // 4 xrefs: // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x6fb010 // > GameLevelManager::onBlockUserCompleted @ 0x6fb288 // > GameLevelManager::invalidateUserList @ 0x6fb798 // > @ 0xaf680 // // 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::resetStoredUserList(GameLevelManager *a1, UserListType a2) { cocos2d::CCDictionary *v2; // x21 stl::StringData::Internal *m_data; // x2 char *v4; // x0 cocos2d::CCDictionary *m_storedLevels; // x21 unsigned int *v6; // x2 int v7; // w1 unsigned int *v8; // x2 std::string v9; // [xsp+40h] [xbp+40h] BYREF if ( !a2 ) { m_storedLevels = a1->m_storedLevels; sub_D153B8((int)&v9, "get_friends"); cocos2d::CCDictionary::removeObjectForKey(m_storedLevels, &v9); m_data = v9.m_data.m_data; v4 = (char *)v9.m_data.m_data - 24; if ( (__int64 *)v9.m_data.m_data - 3 == &qword_124B6B0 ) return; if ( &pthread_create ) { v6 = (unsigned int *)((char *)v9.m_data.m_data - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); goto LABEL_9; } goto LABEL_15; } if ( a2 == Blocked ) { v2 = a1->m_storedLevels; sub_D153B8((int)&v9, "get_blocked"); cocos2d::CCDictionary::removeObjectForKey(v2, &v9); m_data = v9.m_data.m_data; v4 = (char *)v9.m_data.m_data - 24; if ( (__int64 *)v9.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)v9.m_data.m_data - 8); do v7 = __ldaxr(v8); while ( __stlxr(v7 - 1, v8) ); goto LABEL_9; } LABEL_15: v7 = *((_DWORD *)m_data - 2); *((_DWORD *)m_data - 2) = v7 - 1; LABEL_9: if ( v7 <= 0 ) operator delete(v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source