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:
Techjar
2018-11-21 00:15:44 -05:00
parent 92812d0b0b
commit 037aa2192f
6 changed files with 24 additions and 4 deletions

View File

@ -167,6 +167,7 @@ void BuildCompleteFilename(std::string& complete_filename, std::string_view path
bool StringBeginsWith(std::string_view str, std::string_view begin);
bool StringEndsWith(std::string_view str, std::string_view end);
void StringPopBackIf(std::string* s, char c);
size_t StringUTF8CodePointCount(const std::string& str);
std::string CP1252ToUTF8(std::string_view str);
std::string SHIFTJISToUTF8(std::string_view str);