mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-27 02:44:16 +08:00
fix implementation of Steam_Remote_Storage::GetUserPublishedItemVoteDetails()
This commit is contained in:
parent
afb848e427
commit
574b8c411e
@ -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?
|
||||
}
|
||||
} else { // mod not installed
|
||||
data.m_eResult = EResult::k_EResultFail; // TODO is this correct?
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user