[Dvar] Don't use Steam name for now, it's not ready yet

This commit is contained in:
momo5502 2016-12-15 19:18:08 +01:00
parent 6dbe97e9a5
commit deca58db58

View File

@ -162,19 +162,7 @@ namespace Components
}
});
std::string username = "Unknown Soldier";
if (Steam::Proxy::SteamFriends)
{
const char* steamName = Steam::Proxy::SteamFriends->GetPersonaName();
if (steamName && !std::string(steamName).empty())
{
username = steamName;
}
}
return Dvar::Register<const char*>(name, username.data(), Dvar::Flag(flag | Game::dvar_flag::DVAR_FLAG_SAVED).val, description).get<Game::dvar_t*>();
return Dvar::Register<const char*>(name, "Unknown Soldier", Dvar::Flag(flag | Game::dvar_flag::DVAR_FLAG_SAVED).val, description).get<Game::dvar_t*>();
}
Dvar::Dvar()