mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Netplay: Sync codes
Adds a tickbox to the server's window to syncronize codes. Codes are temporarily sent to each client and are used for the duration of the session. Saves the "sync codes" tickbox as per PR Netplay: Properly save hosting settings #7483
This commit is contained in:

committed by
Pierre Bourdon

parent
0140009114
commit
469f29350f
@ -76,6 +76,7 @@ struct NetSettings
|
||||
bool m_EnableGPUTextureDecoding;
|
||||
bool m_StrictSettingsSync;
|
||||
bool m_SyncSaveData;
|
||||
bool m_SyncCodes;
|
||||
std::string m_SaveDataRegion;
|
||||
bool m_IsHosting;
|
||||
bool m_HostInputAuthority;
|
||||
@ -143,6 +144,7 @@ enum
|
||||
|
||||
NP_MSG_SYNC_GC_SRAM = 0xF0,
|
||||
NP_MSG_SYNC_SAVE_DATA = 0xF1,
|
||||
NP_MSG_SYNC_CODES = 0xF2,
|
||||
};
|
||||
|
||||
enum
|
||||
@ -162,6 +164,17 @@ enum
|
||||
SYNC_SAVE_DATA_WII = 5
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
SYNC_CODES_NOTIFY = 0,
|
||||
SYNC_CODES_NOTIFY_GECKO = 1,
|
||||
SYNC_CODES_NOTIFY_AR = 2,
|
||||
SYNC_CODES_DATA_GECKO = 3,
|
||||
SYNC_CODES_DATA_AR = 4,
|
||||
SYNC_CODES_SUCCESS = 5,
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user