From 11771a4e673343f580202fc96193519bb45b8300 Mon Sep 17 00:00:00 2001 From: xen Date: Thu, 18 Apr 2024 06:49:40 +0200 Subject: [PATCH] Only init Steam API once --- src/multiaddonmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multiaddonmanager.cpp b/src/multiaddonmanager.cpp index 25d14e4..4291dc1 100644 --- a/src/multiaddonmanager.cpp +++ b/src/multiaddonmanager.cpp @@ -414,7 +414,8 @@ void MultiAddonManager::ClearAddons() void MultiAddonManager::Hook_GameServerSteamAPIActivated() { // This is only intended for dedicated servers - if (!CommandLine()->HasParm("-dedicated")) + // Also if this is somehow called again don't do anything + if (!CommandLine()->HasParm("-dedicated") || g_SteamAPI.SteamUGC()) return; Message("Steam API Activated\n");