mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Implement sending and receiving friend avatars.
Moves Steam_Friends::Callback into a cpp file. Generates callbacks for avatar changes. Requests avatars when asked for one that is unknown.
This commit is contained in:
parent
25d34a65c4
commit
f693bfb073
3 changed files with 523 additions and 133 deletions
|
|
@ -325,12 +325,12 @@ public:
|
|||
|
||||
if (std::find(callbacks[iCallback].callbacks.begin(), callbacks[iCallback].callbacks.end(), cb) == callbacks[iCallback].callbacks.end()) {
|
||||
callbacks[iCallback].callbacks.push_back(cb);
|
||||
CCallbackMgr::SetRegister(cb, iCallback);
|
||||
for (auto & res: callbacks[iCallback].results) {
|
||||
//TODO: timeout?
|
||||
SteamAPICall_t api_id = results->addCallResult(iCallback, &(res[0]), res.size(), 0.0, false);
|
||||
results->addCallBack(api_id, cb);
|
||||
}
|
||||
CCallbackMgr::SetRegister(cb, iCallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue