summaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-11 15:32:39 +0000
committerlordjaxom <lordjaxom>2004-06-11 15:32:39 +0000
commitc73c6b62067cef765a85dd2a19dcc7296b813b2c (patch)
tree7e340834d60d30a50b682c3e00c6f09eabeacf2e /loader.c
parente0de96fc7168daeaf414fb6196e08969468427d2 (diff)
downloadvdr-plugin-text2skin-c73c6b62067cef765a85dd2a19dcc7296b813b2c.tar.gz
vdr-plugin-text2skin-c73c6b62067cef765a85dd2a19dcc7296b813b2c.tar.bz2
- fixed VPSTime which was displayed on channels that didn't even have VPSv0.0.3
- fixed Symbols in channel display when viewing a group - fixed text translation if no translation is present - fixed compile error with gcc 3.4 (thanks to Gregoire Favre for reporting this) - restructured Skin (now the official Skin version is 0.0.2) it is now possible to control visibility of all items - added a script to convert 0.0.1 themes to 0.0.2 - added support for animated logos (mng or gif files) ONLY IMAGEMAGICK!!! - added finnish language translations (thanks to Rolf Ahrenberg)
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/loader.c b/loader.c
index f4d3940..d2218da 100644
--- a/loader.c
+++ b/loader.c
@@ -1,5 +1,5 @@
/*
- * $Id: loader.c,v 1.9 2004/06/07 18:23:11 lordjaxom Exp $
+ * $Id: loader.c,v 1.10 2004/06/11 15:01:58 lordjaxom Exp $
*/
#include "loader.h"
@@ -7,6 +7,7 @@
#include "i18n.h"
#include "theme.h"
#include "display.h"
+#include "text2skin.h"
#include <vdr/plugin.h>
#include <sys/types.h>
#include <dirent.h>
@@ -48,14 +49,18 @@ void cText2SkinLoader::Load(const char *Skin) {
if (data->Load(skinfile)) {
cText2SkinItem *skin = data->Get(sectionSkin, itemSkin);
if (skin) {
- new cText2SkinLoader(data, translations, theme, Skin, skin->Name());
+ if (skin->Version() == cText2SkinPlugin::ThemeVersion()) {
+ new cText2SkinLoader(data, translations, theme, Skin, skin->Name());
+ return;
+ } else
+ esyslog("ERROR: text2skin: Skin %s is version %s, expecting %s", Skin, skin->Version().c_str(), cText2SkinPlugin::ThemeVersion());
return;
} else
- esyslog("ERROR: Item=Skin is missing in Skin\n");
+ esyslog("ERROR: text2skin: Item=Skin is missing in Skin %s", Skin);
}
delete data;
} else
- esyslog("ERROR: text2skin: %s/%s is not a valid skin directory\n", SkinPath(), Skin);
+ esyslog("ERROR: text2skin: %s/%s is not a valid skin directory", SkinPath(), Skin);
}
cText2SkinLoader::cText2SkinLoader(cText2SkinData *Data, cText2SkinI18n *I18n, cText2SkinTheme *Theme, const string &Skin, const string &Description): cSkin(Skin.c_str(), Theme->Theme()) {