summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-07-03 19:23:06 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-07-03 19:23:06 +0000
commit0f95cbb4a9f1c9a613dccb9d53f5ddb50a8cadd7 (patch)
tree18921c83b3a45c5790f9cfd8b2a584262e0154ae /plugins/AutoShutdown/main.cpp
parente30f0fae7e19f4aa879c04005af9701f8995d3ef (diff)
AutoShutdown:
code cleaning x64 compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@742 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/main.cpp')
-rw-r--r--plugins/AutoShutdown/main.cpp15
1 files changed, 2 insertions, 13 deletions
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;
}