Sync some important settings with server during netplay.

This commit is contained in:
Rachel Bryk
2013-07-19 18:48:27 -04:00
parent 919e54c695
commit e4767aec55
5 changed files with 55 additions and 7 deletions

View File

@ -31,6 +31,15 @@ public:
u32 nLo;
};
struct NetSettings
{
bool m_CPUthread;
bool m_DSPHLE;
bool m_DSPEnableJIT;
u8 m_Controllers;
};
extern NetSettings g_NetPlaySettings;
struct Rpt : public std::vector<u8>
{
u16 channel;
@ -38,7 +47,7 @@ struct Rpt : public std::vector<u8>
typedef std::vector<Rpt> NetWiimote;
#define NETPLAY_VERSION "Dolphin NetPlay 2013-04-11"
#define NETPLAY_VERSION "Dolphin NetPlay 2013-07-19"
// messages
enum
@ -125,6 +134,7 @@ public:
protected:
//void GetBufferedPad(const u8 pad_nb, NetPad* const netvalues);
void ClearBuffers();
void GetNetSettings();
virtual void SendPadState(const PadMapping local_nb, const NetPad& np) = 0;
struct