diff options
| author | louis <louis.braun@gmx.de> | 2015-05-30 16:43:59 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-05-30 16:43:59 +0200 |
| commit | 17871b8811baa9478b2b3247e340aa21bb64e06e (patch) | |
| tree | c3c2139244bbb11d4f0cf3d32e02c1137e29a1c2 /libcore/imagecache.c | |
| parent | 0936766c7be02661f1cd678fdd1b6fb22b5d122c (diff) | |
| download | vdr-plugin-skindesigner-17871b8811baa9478b2b3247e340aa21bb64e06e.tar.gz vdr-plugin-skindesigner-17871b8811baa9478b2b3247e340aa21bb64e06e.tar.bz2 | |
implemented Skin Repositories
Diffstat (limited to 'libcore/imagecache.c')
| -rw-r--r-- | libcore/imagecache.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libcore/imagecache.c b/libcore/imagecache.c index af05777..f9878fe 100644 --- a/libcore/imagecache.c +++ b/libcore/imagecache.c @@ -27,18 +27,20 @@ cImageCache::~cImageCache() { } void cImageCache::SetPathes(void) { - string logoPathSkin = *cString::sprintf("%s%s/themes/%s/logos/", *config.skinPath, Setup.OSDSkin, Setup.OSDTheme); + cString skinPath = config.GetSkinPath(Setup.OSDSkin); + + string logoPathSkin = *cString::sprintf("%s%s/themes/%s/logos/", *skinPath, Setup.OSDSkin, Setup.OSDTheme); if (FolderExists(logoPathSkin)) { logoPath = logoPathSkin; } else { logoPath = *config.logoPath; } - iconPathSkin = *cString::sprintf("%s%s/", *config.skinPath, Setup.OSDSkin); - skinPartsPathSkin = *cString::sprintf("%s%s/skinparts/", *config.skinPath, Setup.OSDSkin); + iconPathSkin = *cString::sprintf("%s%s/", *skinPath, Setup.OSDSkin); + skinPartsPathSkin = *cString::sprintf("%s%s/skinparts/", *skinPath, Setup.OSDSkin); - iconPathTheme = *cString::sprintf("%s%s/themes/%s/", *config.skinPath, Setup.OSDSkin, Setup.OSDTheme); - skinPartsPathTheme = *cString::sprintf("%s%s/themes/%s/skinparts/", *config.skinPath, Setup.OSDSkin, Setup.OSDTheme); + iconPathTheme = *cString::sprintf("%s%s/themes/%s/", *skinPath, Setup.OSDSkin, Setup.OSDTheme); + skinPartsPathTheme = *cString::sprintf("%s%s/themes/%s/skinparts/", *skinPath, Setup.OSDSkin, Setup.OSDTheme); dsyslog("skindesigner: using channel logo path %s", logoPath.c_str()); dsyslog("skindesigner: using icon path %s", iconPathTheme.c_str()); |
