fix implementation of Steam_Remote_Storage::GetUserPublishedItemVoteDetails()

This commit is contained in:
a 2024-12-06 23:10:48 +02:00
parent afb848e427
commit 574b8c411e

View File

@ -1060,15 +1060,11 @@ SteamAPICall_t Steam_Remote_Storage::GetUserPublishedItemVoteDetails( PublishedF
data.m_unPublishedFileId = unPublishedFileId; data.m_unPublishedFileId = unPublishedFileId;
if (settings->isModInstalled(unPublishedFileId)) { if (settings->isModInstalled(unPublishedFileId)) {
auto mod = settings->getMod(unPublishedFileId); auto mod = settings->getMod(unPublishedFileId);
if (mod.steamIDOwner == settings->get_local_steam_id().ConvertToUint64()) { data.m_eResult = EResult::k_EResultOK;
data.m_eResult = EResult::k_EResultOK; data.m_fScore = mod.score;
data.m_fScore = mod.score; data.m_nReports = 0; // TODO is this ok?
data.m_nReports = 0; // TODO is this ok? data.m_nVotesAgainst = mod.votesDown;
data.m_nVotesAgainst = mod.votesDown; data.m_nVotesFor = mod.votesUp;
data.m_nVotesFor = mod.votesUp;
} else { // not published by this user
data.m_eResult = EResult::k_EResultFail; // TODO is this correct?
}
} else { // mod not installed } else { // mod not installed
data.m_eResult = EResult::k_EResultFail; // TODO is this correct? data.m_eResult = EResult::k_EResultFail; // TODO is this correct?
} }