1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-08-03 22:25:33 +02:00

Fix GetItemState()

This commit is contained in:
universal963 2025-04-07 20:35:48 +08:00 committed by GitHub
parent d74e90313c
commit 298c40ea22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}