mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools 2.1.1
* Local Database for verification results and metadata * FlaCuda replaced with FLACCL
This commit is contained in:
@@ -26,6 +26,7 @@ namespace CUEControls
|
||||
/// <param name="open">if true, the file is "open", most useful for folders</param>
|
||||
/// <returns>the index into the image list for the icon associated with this file</returns>
|
||||
int GetIconIndex(ExtraSpecialFolder folder, bool open);
|
||||
int GetIconIndex(string filename);
|
||||
void SetExtensionIcon(string extension, Image icon);
|
||||
void SetExtensionIcon(string extension, Icon icon);
|
||||
string GetFolderPath(ExtraSpecialFolder folder);
|
||||
@@ -280,6 +281,16 @@ namespace CUEControls
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int GetIconIndex(string filename)
|
||||
{
|
||||
int iIcon;
|
||||
if (m_extension_map.TryGetValue(Path.GetExtension(filename).ToLower(), out iIcon))
|
||||
return iIcon;
|
||||
if (m_extension_map.TryGetValue(".wav", out iIcon))
|
||||
return iIcon;
|
||||
return 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region private methods
|
||||
|
||||
Reference in New Issue
Block a user