[SteamProxy] Do not load Steam-Overlay when running a dedicated server or zonebuilder
This commit is contained in:
parent
ea76ca1823
commit
aa2562e420
@ -167,8 +167,11 @@ namespace Steam
|
|||||||
|
|
||||||
SetDllDirectoryA(Proxy::GetSteamDirectory().data());
|
SetDllDirectoryA(Proxy::GetSteamDirectory().data());
|
||||||
|
|
||||||
|
if (!Components::Dedicated::IsEnabled() || !Components::ZoneBuilder::IsEnabled())
|
||||||
|
{
|
||||||
Proxy::Overlay = ::Utils::Library(GAMEOVERLAY_LIB, false);
|
Proxy::Overlay = ::Utils::Library(GAMEOVERLAY_LIB, false);
|
||||||
if (!Proxy::Overlay.valid()) return false;
|
if (!Proxy::Overlay.valid()) return false;
|
||||||
|
}
|
||||||
|
|
||||||
Proxy::Client = ::Utils::Library(STEAMCLIENT_LIB, false);
|
Proxy::Client = ::Utils::Library(STEAMCLIENT_LIB, false);
|
||||||
if (!Proxy::Client.valid()) return false;
|
if (!Proxy::Client.valid()) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user