From 4e1c4b95d7d69ba4d7ab167e638c1979f78b552d Mon Sep 17 00:00:00 2001 From: GoD-Tony Date: Fri, 7 Nov 2014 13:28:18 +0100 Subject: [PATCH] Fixed steam_api failing to open when using gamedata. --- Extension/swgsdetours.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Extension/swgsdetours.cpp b/Extension/swgsdetours.cpp index ca38e0c..9cf69c2 100644 --- a/Extension/swgsdetours.cpp +++ b/Extension/swgsdetours.cpp @@ -60,7 +60,11 @@ SteamWorksGSDetours::SteamWorksGSDetours() pConfig = g_SteamWorks.pSWGameData->GetGameData(); if (pConfig) { - pLibSteamPath = pConfig->GetKeyValue("LibSteamAPI"); + const char *kvLibSteamAPI = pConfig->GetKeyValue("LibSteamAPI"); + if (kvLibSteamAPI) + { + pLibSteamPath = kvLibSteamAPI; + } } }