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(); }