From dde1f3e583159fddbcdba6ec52e7e3e432c00711 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 26 Apr 2015 11:03:17 +0000 Subject: Tox: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@13160 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/api_av.cpp | 2 +- protocols/Tox/src/api_avatars.cpp | 2 +- protocols/Tox/src/api_connection.cpp | 2 +- protocols/Tox/src/api_dns.cpp | 2 +- protocols/Tox/src/api_encryption.cpp | 2 +- protocols/Tox/src/api_groupchats.cpp | 2 +- protocols/Tox/src/api_main.cpp | 2 +- protocols/Tox/src/api_transfer.cpp | 2 +- protocols/Tox/src/common.h | 107 ----------------------------------- protocols/Tox/src/main.cpp | 69 ---------------------- protocols/Tox/src/stdafx.cpp | 18 ------ protocols/Tox/src/stdafx.cxx | 18 ++++++ protocols/Tox/src/stdafx.h | 107 +++++++++++++++++++++++++++++++++++ protocols/Tox/src/tox.cpp | 69 ++++++++++++++++++++++ protocols/Tox/src/tox_accounts.cpp | 2 +- protocols/Tox/src/tox_avatars.cpp | 2 +- protocols/Tox/src/tox_chatrooms.cpp | 2 +- protocols/Tox/src/tox_contacts.cpp | 2 +- protocols/Tox/src/tox_core.cpp | 2 +- protocols/Tox/src/tox_events.cpp | 2 +- protocols/Tox/src/tox_icons.cpp | 2 +- protocols/Tox/src/tox_menus.cpp | 2 +- protocols/Tox/src/tox_messages.cpp | 2 +- protocols/Tox/src/tox_multimedia.cpp | 2 +- protocols/Tox/src/tox_netlib.cpp | 2 +- protocols/Tox/src/tox_network.cpp | 2 +- protocols/Tox/src/tox_options.cpp | 2 +- protocols/Tox/src/tox_profile.cpp | 2 +- protocols/Tox/src/tox_proto.cpp | 2 +- protocols/Tox/src/tox_search.cpp | 2 +- protocols/Tox/src/tox_services.cpp | 2 +- protocols/Tox/src/tox_transfer.cpp | 2 +- protocols/Tox/src/tox_utils.cpp | 2 +- 33 files changed, 221 insertions(+), 221 deletions(-) delete mode 100644 protocols/Tox/src/common.h delete mode 100644 protocols/Tox/src/main.cpp delete mode 100644 protocols/Tox/src/stdafx.cpp create mode 100644 protocols/Tox/src/stdafx.cxx create mode 100644 protocols/Tox/src/stdafx.h create mode 100644 protocols/Tox/src/tox.cpp (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/api_av.cpp b/protocols/Tox/src/api_av.cpp index afcf544bbf..5e09dc81bd 100644 --- a/protocols/Tox/src/api_av.cpp +++ b/protocols/Tox/src/api_av.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* COMMON A/V FUNCTIONS */ diff --git a/protocols/Tox/src/api_avatars.cpp b/protocols/Tox/src/api_avatars.cpp index e15773b94f..658b835a68 100644 --- a/protocols/Tox/src/api_avatars.cpp +++ b/protocols/Tox/src/api_avatars.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* AVATAR FUNCTIONS */ diff --git a/protocols/Tox/src/api_connection.cpp b/protocols/Tox/src/api_connection.cpp index 7777755fd6..3803411fa3 100644 --- a/protocols/Tox/src/api_connection.cpp +++ b/protocols/Tox/src/api_connection.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* CONNECTION FUNCTIONS */ diff --git a/protocols/Tox/src/api_dns.cpp b/protocols/Tox/src/api_dns.cpp index 3b4e601d9a..57db01e57c 100644 --- a/protocols/Tox/src/api_dns.cpp +++ b/protocols/Tox/src/api_dns.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* DNS TOXID RESOILVING FUNCTIONS */ diff --git a/protocols/Tox/src/api_encryption.cpp b/protocols/Tox/src/api_encryption.cpp index f5fd2634e3..b57e342e99 100644 --- a/protocols/Tox/src/api_encryption.cpp +++ b/protocols/Tox/src/api_encryption.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* ENCRYPTION FUNCTIONS */ diff --git a/protocols/Tox/src/api_groupchats.cpp b/protocols/Tox/src/api_groupchats.cpp index eb8b01603d..9919eee92c 100644 --- a/protocols/Tox/src/api_groupchats.cpp +++ b/protocols/Tox/src/api_groupchats.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change */ diff --git a/protocols/Tox/src/api_main.cpp b/protocols/Tox/src/api_main.cpp index 19bb82f586..1e04f74ef0 100644 --- a/protocols/Tox/src/api_main.cpp +++ b/protocols/Tox/src/api_main.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* MAIN FUNCTIONS */ diff --git a/protocols/Tox/src/api_transfer.cpp b/protocols/Tox/src/api_transfer.cpp index f3aceab334..8906436084 100644 --- a/protocols/Tox/src/api_transfer.cpp +++ b/protocols/Tox/src/api_transfer.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* FILE SENDING FUNCTIONS */ diff --git a/protocols/Tox/src/common.h b/protocols/Tox/src/common.h deleted file mode 100644 index be70a8bf6b..0000000000 --- a/protocols/Tox/src/common.h +++ /dev/null @@ -1,107 +0,0 @@ -#ifndef _COMMON_H_ -#define _COMMON_H_ - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include -#include -#include - -struct CToxProto; - -#include "version.h" -#include "resource.h" -#include "tox_icons.h" -#include "tox_menus.h" -#include "tox_address.h" -#include "tox_dialogs.h" -#include "tox_profile.h" -#include "tox_options.h" -#include "tox_transfer.h" -#include "tox_multimedia.h" -#include "tox_chatrooms.h" -#include "tox_proto.h" - -extern HINSTANCE g_hInstance; - -#define MODULE "Tox" - -#define TOX_ERROR -1 - -#define TOX_MAX_CONNECT_RETRIES 300 -#define TOX_MAX_DISCONNECT_RETRIES 300 - -#define TOX_MAX_CALLS 1 - -#define TOX_INI_PATH "%miranda_path%\\Plugins\\tox.ini" - -#define TOX_SETTINGS_ID "ToxID" -#define TOX_SETTINGS_DNS "DnsID" -#define TOX_SETTINGS_CHAT_ID "ChatID" -#define TOX_SETTINGS_GROUP "DefaultGroup" -#define TOX_SETTINGS_AVATAR_HASH "AvatarHash" - -#define TOX_SETTINGS_NODE_PREFIX "Node_" -#define TOX_SETTINGS_NODE_IPV4 TOX_SETTINGS_NODE_PREFIX"%d_IPv4" -#define TOX_SETTINGS_NODE_IPV6 TOX_SETTINGS_NODE_PREFIX"%d_IPv6" -#define TOX_SETTINGS_NODE_PORT TOX_SETTINGS_NODE_PREFIX"%d_Port" -#define TOX_SETTINGS_NODE_PKEY TOX_SETTINGS_NODE_PREFIX"%d_PubKey" -#define TOX_SETTINGS_NODE_COUNT TOX_SETTINGS_NODE_PREFIX"Count" - -enum TOX_DB_EVENT -{ - DB_EVENT_ACTION = 10001, - DB_EVENT_CALL = 20001 -}; - -#define PSR_AUDIO "/RecvAudio" - -#define TOX_MAX_AVATAR_SIZE 1024 * 1024 - -extern HMODULE g_hToxLibrary; - -template -T CreateFunction(LPCSTR functionName) -{ - return reinterpret_cast(GetProcAddress(g_hToxLibrary, functionName)); -} - -#endif //_COMMON_H_ \ No newline at end of file diff --git a/protocols/Tox/src/main.cpp b/protocols/Tox/src/main.cpp deleted file mode 100644 index 4d7cd0ab50..0000000000 --- a/protocols/Tox/src/main.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "common.h" - -int hLangpack; -CLIST_INTERFACE* pcli; -HINSTANCE g_hInstance; -HMODULE g_hToxLibrary = NULL; - -PLUGININFOEX pluginInfo = -{ - sizeof(PLUGININFOEX), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __AUTHOREMAIL, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - // {00272A3E-F5FA-4090-8B67-3E62AC1EE0B4} - {0x272a3e, 0xf5fa, 0x4090, {0x8b, 0x67, 0x3e, 0x62, 0xac, 0x1e, 0xe0, 0xb4}} -}; - -DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID) -{ - g_hInstance = hInstance; - - return TRUE; -} - -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) -{ - return &pluginInfo; -} - -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; - -extern "C" int __declspec(dllexport) Load(void) -{ - g_hToxLibrary = LoadLibrary(_T("libtox.dll")); - if (g_hToxLibrary == NULL) - return 0; - - mir_getCLI(); - mir_getLP(&pluginInfo); - - PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; - pd.szName = "TOX"; - pd.type = PROTOTYPE_PROTOCOL; - pd.fnInit = (pfnInitProto)CToxProto::InitAccount; - pd.fnUninit = (pfnUninitProto)CToxProto::UninitAccount; - CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); - - HookEvent(ME_SYSTEM_MODULESLOADED, &CToxProto::OnModulesLoaded); - - return 0; -} - -extern "C" int __declspec(dllexport) Unload(void) -{ - CToxProto::UninitIcons(); - CToxProto::UninitMenus(); - - if (g_hToxLibrary) - { - FreeLibrary(g_hToxLibrary); - } - - return 0; -} \ No newline at end of file diff --git a/protocols/Tox/src/stdafx.cpp b/protocols/Tox/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/protocols/Tox/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "common.h" \ No newline at end of file diff --git a/protocols/Tox/src/stdafx.cxx b/protocols/Tox/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/protocols/Tox/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/protocols/Tox/src/stdafx.h b/protocols/Tox/src/stdafx.h new file mode 100644 index 0000000000..be70a8bf6b --- /dev/null +++ b/protocols/Tox/src/stdafx.h @@ -0,0 +1,107 @@ +#ifndef _COMMON_H_ +#define _COMMON_H_ + +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include +#include +#include +#include + +struct CToxProto; + +#include "version.h" +#include "resource.h" +#include "tox_icons.h" +#include "tox_menus.h" +#include "tox_address.h" +#include "tox_dialogs.h" +#include "tox_profile.h" +#include "tox_options.h" +#include "tox_transfer.h" +#include "tox_multimedia.h" +#include "tox_chatrooms.h" +#include "tox_proto.h" + +extern HINSTANCE g_hInstance; + +#define MODULE "Tox" + +#define TOX_ERROR -1 + +#define TOX_MAX_CONNECT_RETRIES 300 +#define TOX_MAX_DISCONNECT_RETRIES 300 + +#define TOX_MAX_CALLS 1 + +#define TOX_INI_PATH "%miranda_path%\\Plugins\\tox.ini" + +#define TOX_SETTINGS_ID "ToxID" +#define TOX_SETTINGS_DNS "DnsID" +#define TOX_SETTINGS_CHAT_ID "ChatID" +#define TOX_SETTINGS_GROUP "DefaultGroup" +#define TOX_SETTINGS_AVATAR_HASH "AvatarHash" + +#define TOX_SETTINGS_NODE_PREFIX "Node_" +#define TOX_SETTINGS_NODE_IPV4 TOX_SETTINGS_NODE_PREFIX"%d_IPv4" +#define TOX_SETTINGS_NODE_IPV6 TOX_SETTINGS_NODE_PREFIX"%d_IPv6" +#define TOX_SETTINGS_NODE_PORT TOX_SETTINGS_NODE_PREFIX"%d_Port" +#define TOX_SETTINGS_NODE_PKEY TOX_SETTINGS_NODE_PREFIX"%d_PubKey" +#define TOX_SETTINGS_NODE_COUNT TOX_SETTINGS_NODE_PREFIX"Count" + +enum TOX_DB_EVENT +{ + DB_EVENT_ACTION = 10001, + DB_EVENT_CALL = 20001 +}; + +#define PSR_AUDIO "/RecvAudio" + +#define TOX_MAX_AVATAR_SIZE 1024 * 1024 + +extern HMODULE g_hToxLibrary; + +template +T CreateFunction(LPCSTR functionName) +{ + return reinterpret_cast(GetProcAddress(g_hToxLibrary, functionName)); +} + +#endif //_COMMON_H_ \ No newline at end of file diff --git a/protocols/Tox/src/tox.cpp b/protocols/Tox/src/tox.cpp new file mode 100644 index 0000000000..613c790e24 --- /dev/null +++ b/protocols/Tox/src/tox.cpp @@ -0,0 +1,69 @@ +#include "stdafx.h" + +int hLangpack; +CLIST_INTERFACE* pcli; +HINSTANCE g_hInstance; +HMODULE g_hToxLibrary = NULL; + +PLUGININFOEX pluginInfo = +{ + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {00272A3E-F5FA-4090-8B67-3E62AC1EE0B4} + {0x272a3e, 0xf5fa, 0x4090, {0x8b, 0x67, 0x3e, 0x62, 0xac, 0x1e, 0xe0, 0xb4}} +}; + +DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID) +{ + g_hInstance = hInstance; + + return TRUE; +} + +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) +{ + return &pluginInfo; +} + +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; + +extern "C" int __declspec(dllexport) Load(void) +{ + g_hToxLibrary = LoadLibrary(_T("libtox.dll")); + if (g_hToxLibrary == NULL) + return 0; + + mir_getCLI(); + mir_getLP(&pluginInfo); + + PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; + pd.szName = "TOX"; + pd.type = PROTOTYPE_PROTOCOL; + pd.fnInit = (pfnInitProto)CToxProto::InitAccount; + pd.fnUninit = (pfnUninitProto)CToxProto::UninitAccount; + CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); + + HookEvent(ME_SYSTEM_MODULESLOADED, &CToxProto::OnModulesLoaded); + + return 0; +} + +extern "C" int __declspec(dllexport) Unload(void) +{ + CToxProto::UninitIcons(); + CToxProto::UninitMenus(); + + if (g_hToxLibrary) + { + FreeLibrary(g_hToxLibrary); + } + + return 0; +} \ No newline at end of file diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index 2e77486c37..29645bc6bf 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" LIST CToxProto::Accounts(1, CToxProto::CompareAccounts); diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp index eb5bc71abb..643e447853 100644 --- a/protocols/Tox/src/tox_avatars.cpp +++ b/protocols/Tox/src/tox_avatars.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" std::tstring CToxProto::GetAvatarFilePath(MCONTACT hContact) { diff --git a/protocols/Tox/src/tox_chatrooms.cpp b/protocols/Tox/src/tox_chatrooms.cpp index deb0ad7f48..62af4e6816 100644 --- a/protocols/Tox/src/tox_chatrooms.cpp +++ b/protocols/Tox/src/tox_chatrooms.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" MCONTACT CToxProto::GetChatRoom(int groupNumber) { diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 838a9fde7e..8f6484f39e 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" WORD CToxProto::GetContactStatus(MCONTACT hContact) { diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index 400091cbed..8e5ea7e63d 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" bool CToxProto::InitToxCore() { diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index e22ebb1c3c..cb30de873e 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" int CToxProto::OnModulesLoaded(WPARAM, LPARAM) { diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp index e01c39ff97..eecb2e2bd6 100644 --- a/protocols/Tox/src/tox_icons.cpp +++ b/protocols/Tox/src/tox_icons.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" IconInfo CToxProto::Icons[] = { diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp index aec9a4b1eb..247ba54378 100644 --- a/protocols/Tox/src/tox_menus.cpp +++ b/protocols/Tox/src/tox_menus.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" HGENMENU CToxProto::ContactMenuItems[CMI_MAX]; diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index 3a78ff5b76..d6e77e1ab7 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* MESSAGE RECEIVING */ diff --git a/protocols/Tox/src/tox_multimedia.cpp b/protocols/Tox/src/tox_multimedia.cpp index 597b72263a..3c8dded1b8 100644 --- a/protocols/Tox/src/tox_multimedia.cpp +++ b/protocols/Tox/src/tox_multimedia.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" CToxCallDlgBase::CToxCallDlgBase(CToxProto *proto, int idDialog, MCONTACT hContact) : CToxDlgBase(proto, idDialog, false), hContact(hContact) diff --git a/protocols/Tox/src/tox_netlib.cpp b/protocols/Tox/src/tox_netlib.cpp index 7ebddc66b2..697e89ffa4 100644 --- a/protocols/Tox/src/tox_netlib.cpp +++ b/protocols/Tox/src/tox_netlib.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" void CToxProto::InitNetlib() { diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index c9d4a2b6c2..ec79f22747 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" bool CToxProto::IsOnline() { diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 6023ea62dd..21e2ddba6a 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" CToxOptionsMain::CToxOptionsMain(CToxProto *proto, int idDialog) : CToxDlgBase(proto, idDialog, false), diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index 51361b4b34..1b31e1f9ab 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" HANDLE CToxProto::hProfileFolderPath; diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 0b3947cd74..ebd75482bd 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" CToxProto::CToxProto(const char* protoName, const TCHAR* userName) : PROTO(protoName, userName), diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp index cdfec2218e..0c66c33fea 100644 --- a/protocols/Tox/src/tox_search.cpp +++ b/protocols/Tox/src/tox_search.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" ToxHexAddress ResolveToxAddressFromDnsRecordV1(const std::string &dnsRecord) { diff --git a/protocols/Tox/src/tox_services.cpp b/protocols/Tox/src/tox_services.cpp index cf3d3f142f..3b5ba18395 100644 --- a/protocols/Tox/src/tox_services.cpp +++ b/protocols/Tox/src/tox_services.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" INT_PTR CToxProto::SetMyNickname(WPARAM wParam, LPARAM lParam) { diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index 8a2017affb..c54bc28181 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" /* FILE RECEIVING */ diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp index 68736bfd08..988f2a24f3 100644 --- a/protocols/Tox/src/tox_utils.cpp +++ b/protocols/Tox/src/tox_utils.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" TOX_USER_STATUS CToxProto::MirandaToToxStatus(int status) { -- cgit v1.2.3