diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-05 12:54:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-05 12:54:58 +0000 |
commit | 36feebe9c35c5a4da3f0e35fd5ef819af225fbf2 (patch) | |
tree | 5c6ac1ea8327302557577a9d03f3623fa19b61ad /src | |
parent | caa6d6857bc2477698605b27fa55d5b09d762a0e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/skin/sounds.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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;
|