Merge pull request #7945 from spycrab/np_browser

Qt/NetPlay: Implement session/server browser
This commit is contained in:
spycrab 2019-04-06 12:36:29 +02:00 committed by GitHub
commit 23986d48f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 854 additions and 11 deletions

View file

@ -21,6 +21,7 @@
#include "Common/TraversalClient.h"
#include "Core/NetPlayProto.h"
#include "InputCommon/GCPadStatus.h"
#include "UICommon/NetPlayIndex.h"
namespace NetPlay
{
@ -136,6 +137,7 @@ private:
std::vector<std::pair<std::string, std::string>> GetInterfaceListInternal() const;
void ChunkedDataThreadFunc();
void ChunkedDataSend(sf::Packet&& packet, PlayerId pid, const TargetMode target_mode);
void SetupIndex();
bool PlayerHasControllerMapped(PlayerId pid) const;
@ -187,5 +189,6 @@ private:
ENetHost* m_server = nullptr;
TraversalClient* m_traversal_client = nullptr;
NetPlayUI* m_dialog = nullptr;
NetPlayIndex m_index;
};
} // namespace NetPlay