diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-09-27 23:40:22 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-09-27 23:40:22 +0400 |
commit | 6ad85d964c4cbf02643558071b312549a5397daf (patch) | |
tree | 87552a7d16be3939ae48110a243451fbe8108639 /src/apps/mplayerc/PPageFormats.cpp | |
parent | db63fcb5debf815a33755508ff46cf56abaa2af8 (diff) |
Added descriptions for each extension in format registration
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@264 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageFormats.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageFormats.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apps/mplayerc/PPageFormats.cpp b/src/apps/mplayerc/PPageFormats.cpp index a0b8be315..96242aa1f 100644 --- a/src/apps/mplayerc/PPageFormats.cpp +++ b/src/apps/mplayerc/PPageFormats.cpp @@ -144,7 +144,7 @@ bool CPPageFormats::IsRegistered(CString ext, CString strProgID) }
}
-bool CPPageFormats::RegisterExt(CString ext, CString strProgID, bool fRegister)
+bool CPPageFormats::RegisterExt(CString ext, CString strProgID, CString strLabel, bool fRegister)
{
CString path, fn, extoldreg, cmdEnqueue, cmdOpen;
if(!MakeRegParams(ext, path, fn, cmdEnqueue, cmdOpen))
@@ -154,6 +154,7 @@ bool CPPageFormats::RegisterExt(CString ext, CString strProgID, bool fRegister) // Create ProgID for this file type
if(ERROR_SUCCESS != key.Create(HKEY_CLASSES_ROOT, strProgID)) return(false);
+ if(ERROR_SUCCESS != key.SetStringValue(NULL, strLabel)) return(false);
// Add to playlist option
if(ERROR_SUCCESS != key.Create(HKEY_CLASSES_ROOT, strProgID + _T("\\shell\\enqueue"))) return(false);
@@ -560,7 +561,7 @@ BOOL CPPageFormats::OnApply() POSITION pos = exts.GetHeadPosition();
while(pos)
- RegisterExt(exts.GetNext(pos), mf[(int)m_list.GetItemData(i)].GetProgId(), !!iChecked);
+ RegisterExt(exts.GetNext(pos), mf[(int)m_list.GetItemData(i)].GetProgId(), mf[(int)m_list.GetItemData(i)].GetLabel(), !!iChecked);
}
{
|