From 36feebe9c35c5a4da3f0e35fd5ef819af225fbf2 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 5 Apr 2013 12:54:58 +0000 Subject: core: added check on bass_interface loaded optins page moved to separate tab bass_interface: options page moved to Sounds git-svn-id: http://svn.miranda-ng.org/main/trunk@4314 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/skin/sounds.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/skin') diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp index 80a7e5ff1c..614c99f1f4 100644 --- a/src/modules/skin/sounds.cpp +++ b/src/modules/skin/sounds.cpp @@ -302,7 +302,10 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(ofn)); - mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav; *.mp3; *.ogg; *.flac)%c*.WAV; *.MP3; *.OGG; *.FLAC%c%s (*)%c*%c"), TranslateT("Sound Files"), 0, 0, TranslateT("All Files"), 0, 0); + if (GetModuleHandle(_T("bass_interface.dll"))) + mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav, *.mp3, *.ogg)%c*.wav;*.mp3;*.ogg%c%s (*)%c*%c"), TranslateT("Sound Files"), 0, 0, TranslateT("All Files"), 0, 0); + else + mir_sntprintf(filter, SIZEOF(filter), _T("%s (*.wav)%c*.wav%c%s (*)%c*%c"), TranslateT("WAV Files"), 0, 0, TranslateT("All Files"), 0, 0); ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; ofn.hwndOwner = GetParent(hwndDlg); ofn.hInstance = NULL; @@ -438,7 +441,6 @@ static int SkinOptionsInit(WPARAM wParam, LPARAM) odp.position = -200000000; odp.hInstance = hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_SOUND); - odp.pszGroup = LPGEN("Customize"); odp.pszTitle = LPGEN("Sounds"); odp.pfnDlgProc = DlgProcSoundOpts; odp.flags = ODPF_BOLDGROUPS; -- cgit v1.2.3