Fix SP name
This commit is contained in:
parent
7cd2cfe8f3
commit
d9a3dbff56
@ -7,7 +7,13 @@ namespace steam
|
|||||||
{
|
{
|
||||||
const char* friends::GetPersonaName()
|
const char* friends::GetPersonaName()
|
||||||
{
|
{
|
||||||
return game::Dvar_FindVar("name")->current.string;
|
static const auto* name = game::Dvar_FindVar("name");
|
||||||
|
if (name)
|
||||||
|
{
|
||||||
|
return name->current.string;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "1337";
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long long friends::SetPersonaName(const char* pchPersonaName)
|
unsigned long long friends::SetPersonaName(const char* pchPersonaName)
|
||||||
|
Loading…
Reference in New Issue
Block a user