From 0f95cbb4a9f1c9a613dccb9d53f5ddb50a8cadd7 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 3 Jul 2012 19:23:06 +0000 Subject: AutoShutdown: code cleaning x64 compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@742 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/main.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'plugins/AutoShutdown/main.cpp') diff --git a/plugins/AutoShutdown/main.cpp b/plugins/AutoShutdown/main.cpp index 22fab33c6d..43501bee52 100644 --- a/plugins/AutoShutdown/main.cpp +++ b/plugins/AutoShutdown/main.cpp @@ -80,15 +80,9 @@ static void InstallFile(const TCHAR *pszFileName,const TCHAR *pszDestSubDir) static int ShutdownModulesLoaded(WPARAM wParam,LPARAM lParam) { - UNREFERENCED_PARAMETER(wParam); - UNREFERENCED_PARAMETER(lParam); if(ServiceExists("DBEditorpp/RegisterSingleModule")) CallService("DBEditorpp/RegisterSingleModule",(WPARAM)"AutoShutdown",0); - /* merged thundershutdown plugin */ - if(GetModuleHandleA("tshutdown.dll")) { - DBWriteContactSettingByte(NULL,"PluginDisable","tshutdown.dll",1); - DBWriteContactSettingByte(NULL,"AutoShutdown","WeatherShutdown",1); - } + return 0; } @@ -122,12 +116,7 @@ extern "C" __declspec(dllexport) int Load(void) InitSettingsDlg(); InitOptions(); - /* installation */ - InstallFile(_T("Shutdown-Readme.txt"),_T("Docs\\")); - InstallFile(_T("Shutdown-License.txt"),_T("Docs\\")); - InstallFile(_T("Shutdown-SDK.zip"),_T("Docs\\")); - InstallFile(_T("countdown.wav"),_T("Sounds\\")); - hHookModulesLoaded=HookEvent(ME_SYSTEM_MODULESLOADED,ShutdownModulesLoaded); + hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ShutdownModulesLoaded); return 0; } -- cgit v1.2.3