From be005fdd7a3a801ec698dc211cd2e0dd80030fb6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Oct 2023 16:00:06 +0300 Subject: SmileyAdd_LoadContactSmileys - helper function for adding custom smileys --- plugins/ExternalAPI/m_smileyadd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_smileyadd.h b/plugins/ExternalAPI/m_smileyadd.h index 8b832479fd..1667c678d7 100644 --- a/plugins/ExternalAPI/m_smileyadd.h +++ b/plugins/ExternalAPI/m_smileyadd.h @@ -220,7 +220,11 @@ struct SMADD_CONT const wchar_t *path; // smiley category name for reference }; -#define MS_SMILEYADD_LOADCONTACTSMILEYS "SmileyAdd/LoadContactSmileys" +void __forceinline SmileyAdd_LoadContactSmileys(int type, const char *pszModule, const wchar_t *path) +{ + SMADD_CONT cont = { type, pszModule, path }; + CallService("SmileyAdd/LoadContactSmileys", 0, LPARAM(&cont)); +} ///////////////////////////////////////////////////////////////////////////////////////// // Displays SmileyTool window to choose a smiley -- cgit v1.2.3