mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-14 03:13:57 +08:00
fix implementation of Steam_UGC::GetItemState()
This commit is contained in:
parent
fa0041db0c
commit
c7ce32dad1
@ -1350,18 +1350,20 @@ uint32 Steam_UGC::GetItemState( PublishedFileId_t nPublishedFileID )
|
|||||||
{
|
{
|
||||||
PRINT_DEBUG("%llu", nPublishedFileID);
|
PRINT_DEBUG("%llu", nPublishedFileID);
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
if (ugc_bridge->has_subbed_mod(nPublishedFileID)) {
|
|
||||||
if (settings->isModInstalled(nPublishedFileID)) {
|
if (!settings->isModInstalled(nPublishedFileID)) {
|
||||||
PRINT_DEBUG(" mod is subscribed and installed");
|
PRINT_DEBUG(" mod isn't found");
|
||||||
return k_EItemStateInstalled | k_EItemStateSubscribed;
|
return k_EItemStateNone;
|
||||||
}
|
|
||||||
|
|
||||||
PRINT_DEBUG(" mod is subscribed");
|
|
||||||
return k_EItemStateSubscribed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PRINT_DEBUG(" mod isn't found");
|
if (ugc_bridge->has_subbed_mod(nPublishedFileID)) {
|
||||||
return k_EItemStateNone;
|
PRINT_DEBUG(" mod is subscribed and installed");
|
||||||
|
return k_EItemStateInstalled | k_EItemStateSubscribed;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PRINT_DEBUG(" mod is not subscribed");
|
||||||
|
return k_EItemStateDisabledLocally;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user