From 2d85e824b0185a308df5f4a9f06df65df1c1d58a Mon Sep 17 00:00:00 2001 From: KyleSanderson Date: Wed, 29 Jan 2014 02:28:41 -0700 Subject: [PATCH] Add GameData support to Steam Shutdown func. --- Extension/swgsdetours.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Extension/swgsdetours.cpp b/Extension/swgsdetours.cpp index 1f72c73..675d331 100644 --- a/Extension/swgsdetours.cpp +++ b/Extension/swgsdetours.cpp @@ -53,7 +53,11 @@ SteamWorksGSDetours::SteamWorksGSDetours() if (pLibrary != NULL) { const char *pFunctionName = "SteamGameServer_Shutdown"; - pAddress = pLibrary->GetSymbolAddress(pFunctionName); + if (pConfig == NULL || pConfig->GetMemSig(pFunctionName, &pAddress) == false) + { + pAddress = pLibrary->GetSymbolAddress(pFunctionName); + } + pLibrary->CloseLibrary(); }