mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-03-28 14:56:24 +01:00
fix implementation of Steam_Remote_Storage::GetUserPublishedItemVoteDetails()
This commit is contained in:
parent
afb848e427
commit
574b8c411e
1 changed files with 5 additions and 9 deletions
|
@ -1060,15 +1060,11 @@ SteamAPICall_t Steam_Remote_Storage::GetUserPublishedItemVoteDetails( PublishedF
|
|||
data.m_unPublishedFileId = unPublishedFileId;
|
||||
if (settings->isModInstalled(unPublishedFileId)) {
|
||||
auto mod = settings->getMod(unPublishedFileId);
|
||||
if (mod.steamIDOwner == settings->get_local_steam_id().ConvertToUint64()) {
|
||||
data.m_eResult = EResult::k_EResultOK;
|
||||
data.m_fScore = mod.score;
|
||||
data.m_nReports = 0; // TODO is this ok?
|
||||
data.m_nVotesAgainst = mod.votesDown;
|
||||
data.m_nVotesFor = mod.votesUp;
|
||||
} else { // not published by this user
|
||||
data.m_eResult = EResult::k_EResultFail; // TODO is this correct?
|
||||
}
|
||||
data.m_eResult = EResult::k_EResultOK;
|
||||
data.m_fScore = mod.score;
|
||||
data.m_nReports = 0; // TODO is this ok?
|
||||
data.m_nVotesAgainst = mod.votesDown;
|
||||
data.m_nVotesFor = mod.votesUp;
|
||||
} else { // mod not installed
|
||||
data.m_eResult = EResult::k_EResultFail; // TODO is this correct?
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue