mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Check callback registration in NOTIFY_AVATAR_IMAGE.
Make sure overlay callbacks are registered before firing callbacks for set_profile_image.
This commit is contained in:
parent
4dbf130cb9
commit
5705403157
1 changed files with 8 additions and 4 deletions
|
|
@ -393,12 +393,16 @@ void Settings::background_monitor() {
|
||||||
PRINT_DEBUG("%s.\n", "Settings::background_monitor Got NOTIFY_AVATAR_IMAGE task");
|
PRINT_DEBUG("%s.\n", "Settings::background_monitor Got NOTIFY_AVATAR_IMAGE task");
|
||||||
|
|
||||||
if (client != NULL && client->steam_friends != NULL) {
|
if (client != NULL && client->steam_friends != NULL) {
|
||||||
|
if (disable_overlay == true ||
|
||||||
|
(client->steam_overlay != NULL &&
|
||||||
|
client->steam_overlay->RegisteredInternalCallbacks() == true)) {
|
||||||
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize32x32);
|
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize32x32);
|
||||||
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize64x64);
|
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize64x64);
|
||||||
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize184x184);
|
client->steam_friends->GetFriendAvatar(this->steam_id, k_EAvatarSize184x184);
|
||||||
task_done = true;
|
task_done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PRINT_DEBUG("%s %d.\n", "Settings::background_monitor Unknown task", x->id);
|
PRINT_DEBUG("%s %d.\n", "Settings::background_monitor Unknown task", x->id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue