mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 16:07:32 +00:00
Load default MP player name from the config.
This was SVN commit r12673.
This commit is contained in:
@@ -169,8 +169,10 @@ int GetPlayerID(void* UNUSED(cbdata))
|
||||
|
||||
std::wstring GetDefaultPlayerName(void* UNUSED(cbdata))
|
||||
{
|
||||
// TODO: this should come from a config file or something
|
||||
std::wstring name = sys_get_user_name();
|
||||
std::wstring name = g_PlayerName.FromUTF8();
|
||||
if (name.empty())
|
||||
name = sys_get_user_name();
|
||||
|
||||
if (name.empty())
|
||||
name = L"anonymous";
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user