From c88a84620596987aeb21e55b4eb3d71a4bf4d5d1 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 14 Sep 2014 17:50:50 +0000 Subject: Tox: - updated protocol icons - updated tox core git-svn-id: http://svn.miranda-ng.org/main/trunk@10447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_utils.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'protocols/Tox/src/tox_utils.cpp') diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp index 80d8cdd0e9..47759ffd5c 100644 --- a/protocols/Tox/src/tox_utils.cpp +++ b/protocols/Tox/src/tox_utils.cpp @@ -124,17 +124,10 @@ bool CToxProto::IsFileExists(std::tstring path) std::tstring CToxProto::GetToxProfilePath() { std::tstring profilePath; - //ptrA path(getStringA("DataPath")); - //if (path) - //{ - // profilePath = path; - //} - //if (profilePath.empty()) - { - TCHAR defaultPath[MAX_PATH]; - mir_sntprintf(defaultPath, MAX_PATH, _T("%s\\%s.tox"), VARST(_T("%miranda_userdata%")), m_tszUserName); - profilePath = defaultPath; - } + TCHAR defaultPath[MAX_PATH]; + mir_sntprintf(defaultPath, MAX_PATH, _T("%s\\%s.tox"), VARST(_T("%miranda_userdata%")), m_tszUserName); + profilePath = defaultPath; + return profilePath; } @@ -180,7 +173,6 @@ void CToxProto::SaveToxData() uint32_t size = tox_size(tox); uint8_t *data = (uint8_t*)mir_alloc(size); - tox_save(tox, data); if (fwrite(data, sizeof(uint8_t), size, hFile) != size) -- cgit v1.2.3