From e3ffb2dd16c58c5ca2aa49cea25449c0d81ea456 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 16 Aug 2015 00:00:59 -0400 Subject: [PATCH] NetPlayProto: Minor cleanup --- Source/Core/Core/NetPlayProto.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Source/Core/Core/NetPlayProto.h b/Source/Core/Core/NetPlayProto.h index e3572dd212..9434204621 100644 --- a/Source/Core/Core/NetPlayProto.h +++ b/Source/Core/Core/NetPlayProto.h @@ -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 { u16 channel; }; -typedef std::vector 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; +using MessageId = u8; +using PlayerId = u8; +using PadMapping = s8; +using FrameNum = u32; + namespace NetPlay { bool IsNetPlayRunning();