mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
* corrected callbacks vs call results + a missing callback in UGC
* another missed spam in overlay
This commit is contained in:
parent
47d48829a9
commit
27a8bba702
@ -382,7 +382,7 @@ void Steam_Apps::RequestAllProofOfPurchaseKeys()
|
||||
{
|
||||
AppProofOfPurchaseKeyResponse_t data{};
|
||||
FillProofOfPurchaseKey(data, settings->get_local_game_id().AppID(), true);
|
||||
callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
||||
}
|
||||
|
||||
// DLCs
|
||||
@ -395,14 +395,14 @@ void Steam_Apps::RequestAllProofOfPurchaseKeys()
|
||||
|
||||
AppProofOfPurchaseKeyResponse_t data{};
|
||||
FillProofOfPurchaseKey(data, app_id, true);
|
||||
callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
||||
}
|
||||
|
||||
// termination entry
|
||||
{
|
||||
AppProofOfPurchaseKeyResponse_t data{};
|
||||
FillProofOfPurchaseKey(data, k_uAppIdInvalid, true, "");
|
||||
callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -784,7 +784,9 @@ SteamAPICall_t Steam_UGC::RequestUGCDetails( PublishedFileId_t nPublishedFileID,
|
||||
SteamUGCRequestUGCDetailsResult_t data{};
|
||||
data.m_bCachedData = false;
|
||||
set_details(nPublishedFileID, &(data.m_details));
|
||||
return 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));
|
||||
return ret;
|
||||
}
|
||||
|
||||
SteamAPICall_t Steam_UGC::RequestUGCDetails( PublishedFileId_t nPublishedFileID )
|
||||
@ -1218,7 +1220,7 @@ bool Steam_UGC::GetItemInstallInfo( PublishedFileId_t nPublishedFileID, uint64 *
|
||||
// human fall flat doesn't send a nulled buffer, and won't recognize the proper mod path because of that
|
||||
memset(pchFolder, 0, cchFolderSize);
|
||||
mod.path.copy(pchFolder, cchFolderSize - 1);
|
||||
PRINT_DEBUG(" copied mod path: '%s'", pchFolder);
|
||||
PRINT_DEBUG(" final mod path: '%s'", pchFolder);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1658,7 +1658,7 @@ void Steam_Overlay::steam_run_callback()
|
||||
}
|
||||
// The user clicked on "Join"
|
||||
if (friend_info->second.window_state & window_state_join) {
|
||||
std::string connect = steamFriends->GetFriendRichPresence(friend_id, "connect");
|
||||
std::string connect = steamFriends->get_friend_rich_presence_silent(friend_id, "connect");
|
||||
// The user got a lobby invite and accepted it
|
||||
if (friend_info->second.window_state & window_state_lobby_invite) {
|
||||
GameLobbyJoinRequested_t data;
|
||||
|
Loading…
Reference in New Issue
Block a user