mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 11:39:09 +00:00
NetPlay: Refactor some functions into a common header
This commit is contained in:
parent
56fdde5d74
commit
3d5cf5286b
9 changed files with 262 additions and 230 deletions
|
@ -117,11 +117,6 @@ struct NetTraversalConfig
|
|||
u16 traversal_port = 0;
|
||||
};
|
||||
|
||||
struct Rpt : public std::vector<u8>
|
||||
{
|
||||
u16 channel;
|
||||
};
|
||||
|
||||
// messages
|
||||
enum
|
||||
{
|
||||
|
@ -210,13 +205,15 @@ enum
|
|||
SYNC_CODES_FAILURE = 6,
|
||||
};
|
||||
|
||||
constexpr u32 NETPLAY_LZO_IN_LEN = 1024 * 64;
|
||||
constexpr u32 NETPLAY_LZO_OUT_LEN = NETPLAY_LZO_IN_LEN + (NETPLAY_LZO_IN_LEN / 16) + 64 + 3;
|
||||
constexpr u32 MAX_NAME_LENGTH = 30;
|
||||
constexpr size_t CHUNKED_DATA_UNIT_SIZE = 16384;
|
||||
constexpr u8 CHANNEL_COUNT = 2;
|
||||
constexpr u8 DEFAULT_CHANNEL = 0;
|
||||
constexpr u8 CHUNKED_DATA_CHANNEL = 1;
|
||||
|
||||
enum : u8
|
||||
{
|
||||
DEFAULT_CHANNEL,
|
||||
CHUNKED_DATA_CHANNEL,
|
||||
CHANNEL_COUNT
|
||||
};
|
||||
|
||||
struct WiimoteInput
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue