summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/utils.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-12 19:10:10 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-12 19:10:10 +0000
commita3ff000eb0e2e29c77c38d184d65597e1ad32fcc (patch)
tree105d0871ac304fc372012bb879ab71382226c0f4 /plugins/AutoShutdown/src/utils.cpp
parent37d75985201293402712edfecb611fc14aaa1c3a (diff)
fixed sound registration (fixes #233)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3581 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/src/utils.cpp')
-rw-r--r--plugins/AutoShutdown/src/utils.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/AutoShutdown/src/utils.cpp b/plugins/AutoShutdown/src/utils.cpp
index 21f3349b6d..35dc388557 100644
--- a/plugins/AutoShutdown/src/utils.cpp
+++ b/plugins/AutoShutdown/src/utils.cpp
@@ -291,32 +291,6 @@ HANDLE IcoLib_AddIconRes(const char *pszDbName,const TCHAR *pszSection,const TCH
return Skin_AddIcon(&sid);
}
-int SkinAddNewSoundBundled(const char *pszDbName,const char *pszSection,const char *pszDesc,const char *pszSubDir,const char *pszDefaultFile)
-{
- SKINSOUNDDESCEX ssd;
- char szFile[MAX_PATH],*p;
- HANDLE hFile;
-
- ssd.cbSize=sizeof(ssd);
- ssd.pszName=pszDbName;
- ssd.pszSection=pszSection;
- ssd.pszDescription=pszDesc;
- ssd.pszDefaultFile=NULL;
- if(GetModuleFileNameA(NULL,szFile,SIZEOF(szFile)-lstrlenA(pszSubDir)-lstrlenA(pszDefaultFile))) {
- p=strrchr(szFile,'\\');
- if(p!=NULL) *(++p)=0;
- lstrcatA(lstrcatA(szFile,pszSubDir),pszDefaultFile); /* buffer safe */
- /* check if sound file exist */
- hFile=CreateFileA(szFile,0,FILE_SHARE_READ,NULL,OPEN_EXISTING,0,NULL);
- if(hFile!=INVALID_HANDLE_VALUE) {
- ssd.pszDefaultFile=szFile; /* MS_UTILS_PATHTORELATIVET called automatically */
- CloseHandle(hFile);
- }
- }
- Skin_AddSound(&ssd);
- return 0;
-}
-
void AddHotkey()
{
HOTKEYDESC hkd = {0};