mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-27 19:04:19 +08:00
set missing result data in Steam_UGC::SetUserItemVote()
This commit is contained in:
parent
e492aec54b
commit
f6ec01fd49
@ -1188,9 +1188,6 @@ SteamAPICall_t Steam_UGC::SetUserItemVote( PublishedFileId_t nPublishedFileID, b
|
|||||||
if (!settings->isModInstalled(nPublishedFileID)) return k_uAPICallInvalid; // TODO is this correct
|
if (!settings->isModInstalled(nPublishedFileID)) return k_uAPICallInvalid; // TODO is this correct
|
||||||
|
|
||||||
auto mod = settings->getMod(nPublishedFileID);
|
auto mod = settings->getMod(nPublishedFileID);
|
||||||
SetUserItemVoteResult_t data{};
|
|
||||||
data.m_eResult = EResult::k_EResultOK;
|
|
||||||
data.m_nPublishedFileId = nPublishedFileID;
|
|
||||||
if (bVoteUp) {
|
if (bVoteUp) {
|
||||||
++mod.votesUp;
|
++mod.votesUp;
|
||||||
} else {
|
} else {
|
||||||
@ -1198,6 +1195,11 @@ SteamAPICall_t Steam_UGC::SetUserItemVote( PublishedFileId_t nPublishedFileID, b
|
|||||||
}
|
}
|
||||||
settings->addModDetails(nPublishedFileID, mod);
|
settings->addModDetails(nPublishedFileID, mod);
|
||||||
|
|
||||||
|
SetUserItemVoteResult_t data{};
|
||||||
|
data.m_eResult = EResult::k_EResultOK;
|
||||||
|
data.m_nPublishedFileId = nPublishedFileID;
|
||||||
|
data.m_bVoteUp = bVoteUp;
|
||||||
|
|
||||||
auto ret = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
auto ret = callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user