Add SteamWorks_TokenRequested for authenticated GameServer logins.

This commit is contained in:
KyleSanderson
2014-02-05 22:05:06 -07:00
parent 2a622d9d26
commit d701f286bf
3 changed files with 36 additions and 0 deletions
+5
View File
@@ -38,6 +38,11 @@ DETOUR_DECL_STATIC6(SteamGameServer_InitSafe, bool, uint32, unIP, uint16, usStea
{
bool bRet = DETOUR_STATIC_CALL(SteamGameServer_InitSafe)(unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, pchVersionString); /* Call to init game interfaces. */
if (g_SteamWorks.pSWGameServer != NULL && g_SteamWorks.pGSHooks != NULL)
{
g_SteamWorks.pGSHooks->AddHooks(g_SteamWorks.pSWGameServer->GetGameServer());
}
return bRet;
}