summaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-12-14 20:05:40 +0000
committerlordjaxom <lordjaxom>2004-12-14 20:05:40 +0000
commitb8f29c674cc0ccca207123342c1344bbd0f13796 (patch)
tree2af468bf7acc6df510241c1090d7e6538b6b3cf1 /loader.c
parent3b0999969632e2820b846ca8adcef6b346ff7441 (diff)
downloadvdr-plugin-text2skin-b8f29c674cc0ccca207123342c1344bbd0f13796.tar.gz
vdr-plugin-text2skin-b8f29c674cc0ccca207123342c1344bbd0f13796.tar.bz2
1.0-pre4v1.0-pre4
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader.c b/loader.c
index d4bc27f..6d5db49 100644
--- a/loader.c
+++ b/loader.c
@@ -1,5 +1,5 @@
/*
- * $Id: loader.c,v 1.4 2004/12/08 17:13:25 lordjaxom Exp $
+ * $Id: loader.c,v 1.6 2004/12/14 20:02:31 lordjaxom Exp $
*/
#include "loader.h"
@@ -24,7 +24,8 @@ void cText2SkinLoader::Start(void) {
if (strcmp(result->d_name, ".") == 0 || strcmp(result->d_name, "..") == 0)
continue;
asprintf(&path, "%s/%s", SkinPath().c_str(), result->d_name);
- if (stat(path, &buf) == 0 && S_ISDIR(buf.st_mode))
+ if (stat((SkinPath() + "/" + result->d_name).c_str(), &buf) == 0
+ && S_ISDIR(buf.st_mode))
Load(result->d_name);
free(path);
}
@@ -34,7 +35,7 @@ void cText2SkinLoader::Start(void) {
void cText2SkinLoader::Load(const char *Skin) {
cText2SkinI18n *translations = NULL;
- std::string transfile = (std::string)SkinPath() + "/" + Skin + "/" + Skin + ".trans";
+ std::string transfile = SkinPath() + "/" + Skin + "/" + Skin + ".trans";
if (access(transfile.c_str(), F_OK) == 0) {
translations = new cText2SkinI18n(Skin);
if (!translations->Load(transfile))