mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 02:09:06 +00:00
NetPlay: Limit nickname length
Ridiculously long nicknames cause UI silliness, so 30 characters seems like a reasonable limit, as it's the same as the forum.
This commit is contained in:
parent
92812d0b0b
commit
037aa2192f
6 changed files with 24 additions and 4 deletions
|
@ -171,7 +171,8 @@ enum
|
|||
{
|
||||
CON_ERR_SERVER_FULL = 1,
|
||||
CON_ERR_GAME_RUNNING = 2,
|
||||
CON_ERR_VERSION_MISMATCH = 3
|
||||
CON_ERR_VERSION_MISMATCH = 3,
|
||||
CON_ERR_NAME_TOO_LONG = 4
|
||||
};
|
||||
|
||||
enum
|
||||
|
@ -197,6 +198,7 @@ enum
|
|||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue