Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move some code from NetPlayClient.h to NetPlayProto.h, and only inclu…
…de that outside of NetPlay.
  • Loading branch information
RachelBryk committed Sep 7, 2013
1 parent 2bc44f9 commit 33fb1b5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/BootManager.cpp
Expand Up @@ -34,7 +34,7 @@
#include "Host.h"
#include "VideoBackendBase.h"
#include "Movie.h"
#include "NetPlayClient.h"
#include "NetPlayProto.h"

namespace BootManager
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/HW/SI.cpp
Expand Up @@ -7,7 +7,7 @@
#include "../ConfigManager.h"
#include "../CoreTiming.h"
#include "../Movie.h"
#include "../NetPlayClient.h"
#include "../NetPlayProto.h"

#include "SystemTimers.h"
#include "ProcessorInterface.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp
Expand Up @@ -6,7 +6,7 @@
#include "WII_IPC_HLE.h"
#include "WII_IPC_HLE_Device.h"
// No Wii socket support while using NetPlay or TAS
#include "NetPlayClient.h"
#include "NetPlayProto.h"
#include "Movie.h"

using WII_IPC_HLE_Interface::ECommandType;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/Movie.cpp
Expand Up @@ -24,7 +24,7 @@
#include "../../Common/Src/NandPaths.h"
#include "polarssl/md5.h"
#include "scmrev.h"
#include "NetPlayClient.h"
#include "NetPlayProto.h"

// The chunk to allocate movie data in multiples of.
#define DTM_BASE_LENGTH (1024)
Expand Down
8 changes: 0 additions & 8 deletions Source/Core/Core/Src/NetPlayClient.h
Expand Up @@ -22,8 +22,6 @@

#include "FifoQueue.h"

const int NETPLAY_INITIAL_GCTIME = 1272737767;

class NetPad
{
public:
Expand Down Expand Up @@ -51,8 +49,6 @@ class NetPlayUI
virtual bool IsRecording() = 0;
};

extern NetSettings g_NetPlaySettings;

class Player
{
public:
Expand Down Expand Up @@ -131,10 +127,6 @@ class NetPlayClient
std::map<PlayerId, Player> m_players;
};

namespace NetPlay {
bool IsNetPlayRunning();
};

void NetPlay_Enable(NetPlayClient* const np);
void NetPlay_Disable();

Expand Down
8 changes: 8 additions & 0 deletions Source/Core/Core/Src/NetPlayProto.h
Expand Up @@ -18,6 +18,8 @@ struct NetSettings
TEXIDevices m_EXIDevice[2];
};

extern NetSettings g_NetPlaySettings;

struct Rpt : public std::vector<u8>
{
u16 channel;
Expand All @@ -27,6 +29,8 @@ typedef std::vector<Rpt> NetWiimote;

#define NETPLAY_VERSION "Dolphin NetPlay 2013-09-03"

const int NETPLAY_INITIAL_GCTIME = 1272737767;

// messages
enum
{
Expand Down Expand Up @@ -67,4 +71,8 @@ enum
CON_ERR_VERSION_MISMATCH
};

namespace NetPlay {
bool IsNetPlayRunning();
};

#endif
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/ConfigMain.cpp
Expand Up @@ -30,7 +30,7 @@
#include "HotkeyDlg.h"
#include "Main.h"
#include "VideoBackendBase.h"
#include "NetPlayClient.h"
#include "NetPlayProto.h"

#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)

Expand Down

0 comments on commit 33fb1b5

Please sign in to comment.