diff options
| author | louis <louis.braun@gmx.de> | 2014-11-15 15:49:48 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2014-11-15 15:49:48 +0100 |
| commit | c53e9e3a05ce74c47b6931907a655a0863a8478d (patch) | |
| tree | dcb53833679c2dda092a43e65746099f9e64165d /libcore/imagecache.c | |
| parent | 182a6df2a93d81c3887c48fc77c62ae49b6cb21b (diff) | |
| download | vdr-plugin-skindesigner-c53e9e3a05ce74c47b6931907a655a0863a8478d.tar.gz vdr-plugin-skindesigner-c53e9e3a05ce74c47b6931907a655a0863a8478d.tar.bz2 | |
fixed {hasicon} Token in displaymenu header
Diffstat (limited to 'libcore/imagecache.c')
| -rw-r--r-- | libcore/imagecache.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcore/imagecache.c b/libcore/imagecache.c index 369322e..9ac9050 100644 --- a/libcore/imagecache.c +++ b/libcore/imagecache.c @@ -267,6 +267,17 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) { return *cString::sprintf("customicons/%s", label.c_str()); } +bool cImageCache::MenuIconExists(string name) { + cString iconFullPath = cString::sprintf("%smenuicons/", iconPath.c_str()); + if (FileExists(*iconFullPath, name, "svg")) { + return true; + } + if (FileExists(*iconFullPath, name, "png")) { + return true; + } + return false; +} + void cImageCache::CacheSkinpart(string name, int width, int height) { if (width < 1 || width > 1920 || height < 1 || height > 1080) return; |
