summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-09-14 17:50:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-09-14 17:50:50 +0000
commitc88a84620596987aeb21e55b4eb3d71a4bf4d5d1 (patch)
tree93fb30e0da6e173a257fdaa93bb50e696f660426 /protocols/Tox/src/tox_utils.cpp
parent50096f107de419136ec3eb8a692759651994bb14 (diff)
Tox:
- updated protocol icons - updated tox core git-svn-id: http://svn.miranda-ng.org/main/trunk@10447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_utils.cpp')
-rw-r--r--protocols/Tox/src/tox_utils.cpp16
1 files changed, 4 insertions, 12 deletions
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)