Skip to content

Commit eed4f2f

Browse files
committed
Don't init Steam API on listen servers for now
1 parent 5a192ea commit eed4f2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/multiaddonmanager.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void *MultiAddonManager::OnMetamodQuery(const char *iface, int *ret)
246246

247247
void MultiAddonManager::BuildAddonPath(const char *pszAddon, char *buf, size_t len)
248248
{
249-
// The workshop is stored relative to the working directory for whatever reason
249+
// The workshop on a dedicated server is stored relative to the working directory for whatever reason
250250
static CBufferStringGrowable<MAX_PATH> s_sWorkingDir;
251251
ExecuteOnce(g_pFullFileSystem->GetSearchPath("EXECUTABLE_PATH", GET_SEARCH_PATH_ALL, s_sWorkingDir, 1));
252252

@@ -409,6 +409,10 @@ void MultiAddonManager::ClearAddons()
409409

410410
void MultiAddonManager::Hook_GameServerSteamAPIActivated()
411411
{
412+
// This is only intended for dedicated servers
413+
if (!CommandLine()->FindParm("-dedicated"))
414+
return;
415+
412416
Message("Steam API Activated\n");
413417

414418
g_SteamAPI.Init();

0 commit comments

Comments
 (0)