Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

When you login with your 4d1 account on the popup, and you click remember credentials (it saves them in iw4m.ini) so you dont have to authenticate everytime you boot the game.

 

When you boot the game it reads the username (from the authencation) in the code

 

char* Auth_GetUsername()
{
return authUsername;
}

 

So the iw4m.dll file has your username.

 

When the game loads it needs a name (gamertag)

 

It does that here:

const char *CSteamFriends005::GetPersonaName()
{
#ifdef PRE_RELEASE_DEMOED
dvar_t* name = Dvar_FindVar("name");
DWORD bufSize = sizeof(g_userName);
GetUserName(g_userName, &bufSize);

if (!g_nameSet)
{
	Dvar_SetCommand("name", g_userName);
	g_nameSet = true;
}

if (strcmp(name->current.string, g_userName))
{
	return name->current.string;
}

return g_userName;
#else
if (GAME_FLAG(GAME_FLAG_DEDICATED))
{
	return VERSIONSTRING "d";
}

return Auth_GetUsername();
#endif
}

 

And as you see, it does Auth_GetUsername() which was defined in the start of this post, and that is how it gets the name.

 

P.S If I am completely incorrect or I made a mistake in this post, please correct me as this is just a random guess :)

Опубликовано:

Through NP..?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.