summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r--protocols/Steam/src/steam_proto.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 1a7f7f2b7b..94e592e2fb 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -29,6 +29,12 @@ CSteamProto::CSteamProto(const char* protoName, const TCHAR* userName) :
Skin_AddIcon(&sid);
SetAllContactsStatus(ID_STATUS_OFFLINE);
+
+ // Avatar API
+ this->CreateProtoService(PS_GETAVATARINFOT, &CSteamProto::GetAvatarInfo);
+ this->CreateProtoService(PS_GETAVATARCAPS, &CSteamProto::GetAvatarCaps);
+ this->CreateProtoService(PS_GETMYAVATART, &CSteamProto::GetMyAvatar);
+ //this->CreateProtoService(PS_SETMYAVATART, &CSteamProto::SetMyAvatar);
}
CSteamProto::~CSteamProto()
@@ -98,6 +104,8 @@ DWORD_PTR __cdecl CSteamProto:: GetCaps(int type, MCONTACT hContact)
return PF1_IM | PF1_BASICSEARCH | PF1_SEARCHBYNAME;
case PFLAGNUM_2:
return PF2_ONLINE;
+ case PFLAGNUM_4:
+ return PF4_AVATARS;
case PFLAG_UNIQUEIDTEXT:
return (DWORD_PTR)Translate("SteamID");
case PFLAG_UNIQUEIDSETTING: