[SteamProxy] Do not load Steam-Overlay when running a dedicated server or zonebuilder

This commit is contained in:
sr0 2017-02-03 23:25:57 +01:00
parent ea76ca1823
commit aa2562e420

View File

@ -167,8 +167,11 @@ namespace Steam
SetDllDirectoryA(Proxy::GetSteamDirectory().data());
if (!Components::Dedicated::IsEnabled() || !Components::ZoneBuilder::IsEnabled())
{
Proxy::Overlay = ::Utils::Library(GAMEOVERLAY_LIB, false);
if (!Proxy::Overlay.valid()) return false;
}
Proxy::Client = ::Utils::Library(STEAMCLIENT_LIB, false);
if (!Proxy::Client.valid()) return false;