From 298c40ea2203045e229af5ddce2177392ccbe337 Mon Sep 17 00:00:00 2001 From: universal963 <36097923+universal963@users.noreply.github.com> Date: Mon, 7 Apr 2025 20:35:48 +0800 Subject: [PATCH] Fix `GetItemState()` --- dll/steam_ugc.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dll/steam_ugc.cpp b/dll/steam_ugc.cpp index 2e22809f..cd1e1193 100644 --- a/dll/steam_ugc.cpp +++ b/dll/steam_ugc.cpp @@ -1462,8 +1462,14 @@ uint32 Steam_UGC::GetItemState( PublishedFileId_t nPublishedFileID ) } if (ugc_bridge->has_subbed_mod(nPublishedFileID)) { - PRINT_DEBUG(" mod is subscribed and installed"); - return k_EItemStateInstalled | k_EItemStateSubscribed; + if (subscribed_disabled.count(nPublishedFileID)) { + PRINT_DEBUG(" mod is subscribed but disabled"); + return k_EItemStateDisabledLocally | k_EItemStateSubscribed; + } + else { + PRINT_DEBUG(" mod is subscribed and installed"); + return k_EItemStateInstalled | k_EItemStateSubscribed; + } }