mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
NetPlayProto: Minor cleanup
This commit is contained in:
parent
b8a35f6996
commit
e3ffb2dd16
@ -8,6 +8,8 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Core/HW/EXI_Device.h"
|
||||
|
||||
#define NETPLAY_VERSION "Dolphin NetPlay 2015-06-24"
|
||||
|
||||
struct NetSettings
|
||||
{
|
||||
bool m_CPUthread;
|
||||
@ -25,18 +27,13 @@ struct NetSettings
|
||||
};
|
||||
|
||||
extern NetSettings g_NetPlaySettings;
|
||||
extern u64 g_netplay_initial_gctime;
|
||||
|
||||
struct Rpt : public std::vector<u8>
|
||||
{
|
||||
u16 channel;
|
||||
};
|
||||
|
||||
typedef std::vector<u8> NetWiimote;
|
||||
|
||||
#define NETPLAY_VERSION "Dolphin NetPlay 2015-06-24"
|
||||
|
||||
extern u64 g_netplay_initial_gctime;
|
||||
|
||||
// messages
|
||||
enum
|
||||
{
|
||||
@ -70,11 +67,6 @@ enum
|
||||
NP_MSG_SYNC_GC_SRAM = 0xF0,
|
||||
};
|
||||
|
||||
typedef u8 MessageId;
|
||||
typedef u8 PlayerId;
|
||||
typedef s8 PadMapping;
|
||||
typedef u32 FrameNum;
|
||||
|
||||
enum
|
||||
{
|
||||
CON_ERR_SERVER_FULL = 1,
|
||||
@ -82,6 +74,12 @@ enum
|
||||
CON_ERR_VERSION_MISMATCH = 3
|
||||
};
|
||||
|
||||
using NetWiimote = std::vector<u8>;
|
||||
using MessageId = u8;
|
||||
using PlayerId = u8;
|
||||
using PadMapping = s8;
|
||||
using FrameNum = u32;
|
||||
|
||||
namespace NetPlay
|
||||
{
|
||||
bool IsNetPlayRunning();
|
||||
|
Loading…
Reference in New Issue
Block a user