From cb4d31922f0690f5a3c79526245c963bfd118864 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 May 2018 21:56:03 +0300 Subject: Icon_Register(g_plugin.getInst() => g_plugin.registerIcon Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW --- plugins/SimpleAR/src/Main.cpp | 9 ++++----- plugins/SimpleAR/src/stdafx.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/SimpleAR/src') diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp index 56064ab583..98e99e3200 100644 --- a/plugins/SimpleAR/src/Main.cpp +++ b/plugins/SimpleAR/src/Main.cpp @@ -238,10 +238,10 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent) ///////////////////////////////////////////////////////////////////////////////////////// -IconItemT iconList[] = +IconItem iconList[] = { - { LPGENW("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF }, - { LPGENW("Enable Auto&reply"), "Enable Auto&reply", IDI_ON } + { LPGEN("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF }, + { LPGEN("Enable Auto&reply"), "Enable Auto&reply", IDI_ON } }; extern "C" int __declspec(dllexport)Load(void) @@ -271,8 +271,7 @@ extern "C" int __declspec(dllexport)Load(void) HookEvent(ME_DB_EVENT_ADDED, addEvent); HookEvent(ME_SYSTEM_MODULESLOADED, CheckDefaults); - Icon_RegisterT(g_plugin.getInst(), L"Simple Auto Replier", iconList, _countof(iconList)); - + g_plugin.registerIcon("Simple Auto Replier", iconList); return 0; } diff --git a/plugins/SimpleAR/src/stdafx.h b/plugins/SimpleAR/src/stdafx.h index 2ba5c1c970..863bdca124 100644 --- a/plugins/SimpleAR/src/stdafx.h +++ b/plugins/SimpleAR/src/stdafx.h @@ -34,6 +34,6 @@ struct CMPlugin : public PLUGIN extern INT interval; extern wchar_t *ptszDefaultMsg[6]; extern HGENMENU hEnableMenu; -extern IconItemT iconList[]; +extern IconItem iconList[]; extern INT OptInit(WPARAM wParam, LPARAM lParam); -- cgit v1.2.3