Add fetching favorites info

This commit is contained in:
nheir 2018-10-22 22:37:47 +02:00
parent 9eeb7dffa5
commit cb54ef66d9

View file

@ -95,17 +95,18 @@ void CServerBrowser::Set(const NETADDR &Addr, int SetType, int Token, const CSer
}
}
break;
/*else if(Type == SET_FAV_ADD)
case SET_FAV_ADD:
{
if(m_ServerlistType != IServerBrowser::TYPE_FAVORITES)
if(!(m_RefreshFlags&IServerBrowser::REFRESHFLAG_INTERNET))
return;
if(!Find(Addr))
if(!Find(IServerBrowser::TYPE_INTERNET, Addr))
{
pEntry = Add(Addr);
pEntry = Add(IServerBrowser::TYPE_INTERNET, Addr);
QueueRequest(pEntry);
}
}*/
}
break;
case SET_TOKEN:
{
int Type;
@ -291,13 +292,10 @@ void CServerBrowser::Refresh(int RefreshFlags)
m_NumRequests = 0;
m_NeedRefresh = 1;
for(int i = 0; i < m_ServerBrowserFavorites.m_NumFavoriteServers; i++)
if(m_ServerBrowserFavorites.m_aFavoriteServers[i].m_State >= CServerBrowserFavorites::FAVSTATE_ADDR)
Set(m_ServerBrowserFavorites.m_aFavoriteServers[i].m_Addr, SET_FAV_ADD, -1, 0);
}
/*else if(Type == IServerBrowser::TYPE_FAVORITES)
{
for(int i = 0; i < m_NumFavoriteServers; i++)
if(m_aFavoriteServers[i].m_State >= FAVSTATE_ADDR)
Set(m_aFavoriteServers[i].m_Addr, SET_FAV_ADD, -1, 0);
}*/
}
int CServerBrowser::LoadingProgression() const