summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-07 12:38:38 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-07 12:38:38 +0000
commit00d6d7d71a015dfeb34e891f0ebe39a7795ea57f (patch)
tree5a2d7dffd187774d8509746321063cc2135bacc0 /protocols/SkypeWeb/src/skype_proto.cpp
parent2f4737000403cf82d38ac098f77fd071a3f9c027 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12648 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 75a42b1acc..6434ec4b90 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -17,9 +17,16 @@ PROTO<CSkypeProto>(protoName, userName), password(NULL)
requestQueue = new RequestQueue(m_hNetlibUser);
CreateProtoService(PS_CREATEACCMGRUI, &CSkypeProto::OnAccountManagerInit);
+
CreateProtoService(PS_GETAVATARINFOT, &CSkypeProto::SvcGetAvatarInfo);
CreateProtoService(PS_GETAVATARCAPS, &CSkypeProto::SvcGetAvatarCaps);
CreateProtoService(PS_GETMYAVATART, &CSkypeProto::SvcGetMyAvatar);
+ CreateProtoService(PS_SETMYAVATART, &CSkypeProto::SvcSetMyAvatar);
+
+ m_tszAvatarFolder = std::tstring(VARST(_T("%miranda_avatarcache%"))) + _T("\\") + m_tszUserName;
+ DWORD dwAttributes = GetFileAttributes(m_tszAvatarFolder.c_str());
+ if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
+ CreateDirectoryTreeT(m_tszAvatarFolder.c_str());
// custom event
DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };