Move some code from NetPlayClient.h to NetPlayProto.h, and only include that outside of NetPlay.
This commit is contained in:
parent
2bc44f98c3
commit
33fb1b562f
|
@ -34,7 +34,7 @@
|
||||||
#include "Host.h"
|
#include "Host.h"
|
||||||
#include "VideoBackendBase.h"
|
#include "VideoBackendBase.h"
|
||||||
#include "Movie.h"
|
#include "Movie.h"
|
||||||
#include "NetPlayClient.h"
|
#include "NetPlayProto.h"
|
||||||
|
|
||||||
namespace BootManager
|
namespace BootManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "../ConfigManager.h"
|
#include "../ConfigManager.h"
|
||||||
#include "../CoreTiming.h"
|
#include "../CoreTiming.h"
|
||||||
#include "../Movie.h"
|
#include "../Movie.h"
|
||||||
#include "../NetPlayClient.h"
|
#include "../NetPlayProto.h"
|
||||||
|
|
||||||
#include "SystemTimers.h"
|
#include "SystemTimers.h"
|
||||||
#include "ProcessorInterface.h"
|
#include "ProcessorInterface.h"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "WII_IPC_HLE.h"
|
#include "WII_IPC_HLE.h"
|
||||||
#include "WII_IPC_HLE_Device.h"
|
#include "WII_IPC_HLE_Device.h"
|
||||||
// No Wii socket support while using NetPlay or TAS
|
// No Wii socket support while using NetPlay or TAS
|
||||||
#include "NetPlayClient.h"
|
#include "NetPlayProto.h"
|
||||||
#include "Movie.h"
|
#include "Movie.h"
|
||||||
|
|
||||||
using WII_IPC_HLE_Interface::ECommandType;
|
using WII_IPC_HLE_Interface::ECommandType;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "../../Common/Src/NandPaths.h"
|
#include "../../Common/Src/NandPaths.h"
|
||||||
#include "polarssl/md5.h"
|
#include "polarssl/md5.h"
|
||||||
#include "scmrev.h"
|
#include "scmrev.h"
|
||||||
#include "NetPlayClient.h"
|
#include "NetPlayProto.h"
|
||||||
|
|
||||||
// The chunk to allocate movie data in multiples of.
|
// The chunk to allocate movie data in multiples of.
|
||||||
#define DTM_BASE_LENGTH (1024)
|
#define DTM_BASE_LENGTH (1024)
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
|
|
||||||
#include "FifoQueue.h"
|
#include "FifoQueue.h"
|
||||||
|
|
||||||
const int NETPLAY_INITIAL_GCTIME = 1272737767;
|
|
||||||
|
|
||||||
class NetPad
|
class NetPad
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -51,8 +49,6 @@ public:
|
||||||
virtual bool IsRecording() = 0;
|
virtual bool IsRecording() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern NetSettings g_NetPlaySettings;
|
|
||||||
|
|
||||||
class Player
|
class Player
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -131,10 +127,6 @@ private:
|
||||||
std::map<PlayerId, Player> m_players;
|
std::map<PlayerId, Player> m_players;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace NetPlay {
|
|
||||||
bool IsNetPlayRunning();
|
|
||||||
};
|
|
||||||
|
|
||||||
void NetPlay_Enable(NetPlayClient* const np);
|
void NetPlay_Enable(NetPlayClient* const np);
|
||||||
void NetPlay_Disable();
|
void NetPlay_Disable();
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@ struct NetSettings
|
||||||
TEXIDevices m_EXIDevice[2];
|
TEXIDevices m_EXIDevice[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern NetSettings g_NetPlaySettings;
|
||||||
|
|
||||||
struct Rpt : public std::vector<u8>
|
struct Rpt : public std::vector<u8>
|
||||||
{
|
{
|
||||||
u16 channel;
|
u16 channel;
|
||||||
|
@ -27,6 +29,8 @@ typedef std::vector<Rpt> NetWiimote;
|
||||||
|
|
||||||
#define NETPLAY_VERSION "Dolphin NetPlay 2013-09-03"
|
#define NETPLAY_VERSION "Dolphin NetPlay 2013-09-03"
|
||||||
|
|
||||||
|
const int NETPLAY_INITIAL_GCTIME = 1272737767;
|
||||||
|
|
||||||
// messages
|
// messages
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -67,4 +71,8 @@ enum
|
||||||
CON_ERR_VERSION_MISMATCH
|
CON_ERR_VERSION_MISMATCH
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace NetPlay {
|
||||||
|
bool IsNetPlayRunning();
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "HotkeyDlg.h"
|
#include "HotkeyDlg.h"
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
#include "VideoBackendBase.h"
|
#include "VideoBackendBase.h"
|
||||||
#include "NetPlayClient.h"
|
#include "NetPlayProto.h"
|
||||||
|
|
||||||
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
|
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue