Add GameData support to Steam Shutdown func.

This commit is contained in:
KyleSanderson
2014-01-29 02:28:41 -07:00
parent a39fdfc731
commit 2d85e824b0
+4
View File
@@ -53,7 +53,11 @@ SteamWorksGSDetours::SteamWorksGSDetours()
if (pLibrary != NULL) if (pLibrary != NULL)
{ {
const char *pFunctionName = "SteamGameServer_Shutdown"; const char *pFunctionName = "SteamGameServer_Shutdown";
if (pConfig == NULL || pConfig->GetMemSig(pFunctionName, &pAddress) == false)
{
pAddress = pLibrary->GetSymbolAddress(pFunctionName); pAddress = pLibrary->GetSymbolAddress(pFunctionName);
}
pLibrary->CloseLibrary(); pLibrary->CloseLibrary();
} }