diff options
author | louis <louis.braun@gmx.de> | 2013-11-07 16:58:07 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-07 16:58:07 +0100 |
commit | e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7 (patch) | |
tree | 7886779ba33b466b2fe9ca67362183dabe08597e /config.c | |
parent | 0bbbad6d8057953ae51e9465bd76e5a3256e5eee (diff) | |
download | skin-nopacity-e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7.tar.gz skin-nopacity-e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7.tar.bz2 |
changed build environment that every class is build seperately
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -2,6 +2,8 @@ #include <vector> #include <map> #include "config.h" +#include "helpers.h" +#include <vdr/skins.h> cNopacityConfig::cNopacityConfig() { logoPathSet = false; @@ -163,7 +165,7 @@ void cNopacityConfig::LoadDefaults(void) { conf.insert(std::pair<std::string, int>("progressCurrentSchedule", 0)); conf.insert(std::pair<std::string, int>("displayPoster", 1)); conf.insert(std::pair<std::string, int>("channelPosterBorder", 10)); - //Display Replay + //Display Replay conf.insert(std::pair<std::string, int>("replayHeight", 25)); conf.insert(std::pair<std::string, int>("replayBorderVertical", 15)); conf.insert(std::pair<std::string, int>("replayBorderBottom", 15)); @@ -197,7 +199,7 @@ void cNopacityConfig::LoadDefaults(void) { conf.insert(std::pair<std::string, int>("numLogosMax", 50)); } -void cNopacityConfig::SetFontName() { +void cNopacityConfig::SetFontName() { if (fontName) free(fontName); if (GetValue("fontIndex") == 0) { @@ -207,7 +209,7 @@ void cNopacityConfig::SetFontName() { cFont::GetAvailableFontNames(&availableFonts); if (availableFonts[GetValue("fontIndex")-1]) { fontName = strdup(availableFonts[GetValue("fontIndex")-1]); - } else + } else fontName = strdup(fontDefaultName); } } @@ -216,10 +218,10 @@ void cNopacityConfig::SetPathes(void) { logoPathDefault = cString::sprintf("%s/logos/", cPlugin::ResourceDirectory(PLUGIN_NAME_I18N)); iconPathDefault = cString::sprintf("%s/icons/", cPlugin::ResourceDirectory(PLUGIN_NAME_I18N)); epgImagePathDefault = cString::sprintf("%s/epgimages/", cPlugin::CacheDirectory(PLUGIN_NAME_I18N)); - - dsyslog("nopacity: using Logo Directory %s", (logoPathSet)?(*logoPath):(*logoPathDefault)); - dsyslog("nopacity: using Icon Directory %s", (iconPathSet)?(*iconPath):(*iconPathDefault)); - dsyslog("nopacity: using EPG Images Directory %s", (epgImagePathSet)?(*epgImagePath):(*epgImagePathDefault)); + + dsyslog("nopacity: using Logo Directory %s", (logoPathSet)?(*logoPath):(*logoPathDefault)); + dsyslog("nopacity: using Icon Directory %s", (iconPathSet)?(*iconPath):(*iconPathDefault)); + dsyslog("nopacity: using EPG Images Directory %s", (epgImagePathSet)?(*epgImagePath):(*epgImagePathDefault)); } void cNopacityConfig::SetLogoPath(cString path) { @@ -253,7 +255,7 @@ void cNopacityConfig::LoadThemeSpecificConfigs(void) { for (int theme = 0; theme < numThemes; theme++) { cString confFile = cString::sprintf("%s/themeconfigs/theme-%s.conf", cPlugin::ConfigDirectory(PLUGIN_NAME_I18N), themes.Name(theme)); dsyslog("nopacity: trying to load theme config %s", *confFile); - LoadThemeConfig(confFile, themes.Name(theme)); + LoadThemeConfig(confFile, themes.Name(theme)); } } |