aboutsummaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
Commit message (Collapse)AuthorAge
* Masterserver: report gameid, uptime, cosmetic fixes on server web pageproller2013-03-30
|
* Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);Ilya Zhuravlev2013-03-03
|
* Fix "longjmp causes uninitialized stack frame" (serverlist.cpp)Ilya Zhuravlev2013-03-01
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* new auto masterserverproller2013-02-22
|
* Add a list of servers to the "Multiplayer" tabJeija2013-01-21
If USE_CURL is set, it also downloads a list from a remote server. The url of this list is configurable in minetest.conf using the setting "serverlist_url" The local list of favorite servers is saved in client/serverlist/filename filename is also configureable using the setting "serverlist_file"
="hl opt">(std::map<u16, std::string>::const_iterator i = m_id_to_name.begin(); i != m_id_to_name.end(); i++){ writeU16(os, i->first); os<<serializeString(i->second); } } void NameIdMapping::deSerialize(std::istream &is) { int version = readU8(is); if(version != 0) throw SerializationError("unsupported NameIdMapping version"); u32 count = readU16(is); m_id_to_name.clear(); m_name_to_id.clear(); for(u32 i=0; i<count; i++){ u16 id = readU16(is); std::string name = deSerializeString(is); m_id_to_name[id] = name; m_name_to_id[name] = id; } }