summaryrefslogtreecommitdiff
path: root/xml/function.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-12-09 14:27:06 +0000
committerlordjaxom <lordjaxom>2004-12-09 14:27:06 +0000
commite4c359b5c303cecfc49fb82799805da9fee8dadb (patch)
treeca09dced5d5794edac92e64c54b04a07a4a4c4ea /xml/function.c
parent5382d18d05d358bb1c313c642395e835aa44a6a0 (diff)
downloadvdr-plugin-text2skin-e4c359b5c303cecfc49fb82799805da9fee8dadb.tar.gz
vdr-plugin-text2skin-e4c359b5c303cecfc49fb82799805da9fee8dadb.tar.bz2
1.0-pre2v1.0-pre2
Diffstat (limited to 'xml/function.c')
-rw-r--r--xml/function.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xml/function.c b/xml/function.c
index e6e321c..f283c2c 100644
--- a/xml/function.c
+++ b/xml/function.c
@@ -4,6 +4,7 @@
#include "xml/function.h"
#include "render.h"
+#include "bitmap.h"
#include "common.h"
#include <vdr/tools.h>
@@ -156,10 +157,8 @@ bool cxFunction::Parse(const std::string &Text)
const std::string &cxFunction::FunFile(const std::string &Param) const
{
std::string path = cText2SkinRender::ImagePath(Param);
- Dprintf("checking file(%s)\n", path.c_str());
- if (access(path.c_str(), F_OK) == 0)
- return Param;
- return False;
+ Dprintf("checking file(%s) in cache\n", path.c_str());
+ return cText2SkinBitmap::Load(path) ? Param : False;
}
std::string cxFunction::Evaluate(void) const