mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-17 07:49:21 +00:00
NetPlayClient: Make SendAsync take a unique_ptr as a parameter
This commit is contained in:
parent
c2deb337aa
commit
8588c8fd31
2 changed files with 58 additions and 30 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
@ -48,7 +49,7 @@ class NetPlayClient : public TraversalClientClient
|
|||
{
|
||||
public:
|
||||
void ThreadFunc();
|
||||
void SendAsync(sf::Packet* packet);
|
||||
void SendAsync(std::unique_ptr<sf::Packet> packet);
|
||||
|
||||
NetPlayClient(const std::string& address, const u16 port, NetPlayUI* dialog, const std::string& name, bool traversal, const std::string& centralServer, u16 centralPort);
|
||||
~NetPlayClient();
|
||||
|
@ -128,6 +129,9 @@ private:
|
|||
Failure
|
||||
};
|
||||
|
||||
void SendStartGamePacket();
|
||||
void SendStopGamePacket();
|
||||
|
||||
void UpdateDevices();
|
||||
void SendPadState(const PadMapping in_game_pad, const GCPadStatus& np);
|
||||
void SendWiimoteState(const PadMapping in_game_pad, const NetWiimote& nw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue