From ed9fa764b873d1ae27ab98249a5d3bb31c253bdb Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 7 Sep 2015 19:40:25 +0000 Subject: Tox: - change error message when tox core initialization is failed - trying to fix error with keepstatus reconnect git-svn-id: http://svn.miranda-ng.org/main/trunk@15297 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_profile.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'protocols/Tox/src/tox_profile.cpp') diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index 5980118043..d6fff1c75d 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -88,20 +88,10 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) options->savedata_data = data; options->savedata_length = size; options->savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE; + return true; } - - TOX_ERR_NEW initError; - tox = tox_new(options, &initError); - if (initError != TOX_ERR_NEW_OK) - { - debugLogA(__FUNCTION__": failed to load tox profile (%d)", initError); - ShowNotification(ToxErrorToString(initError), TranslateT("Unable to load Tox profile"), MB_ICONERROR); - mir_free(data); - return false; - } - mir_free(data); - debugLogA(__FUNCTION__": tox profile load successfully"); - return true; + + return false; } void CToxProto::SaveToxProfile() -- cgit v1.2.3