summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-04-11 16:48:58 +0200
committerlouis <louis.braun@gmx.de>2015-04-11 16:48:58 +0200
commit22da0fccd432610f6a2ca9ea1a1c5557fb12edec (patch)
tree91d58d7a2abf7c4c6530fd6fb74c599773b1fcbc /libcore
parent6872e29fe6d628acd95a5f5eded6f372102fea31 (diff)
downloadvdr-plugin-skindesigner-22da0fccd432610f6a2ca9ea1a1c5557fb12edec.tar.gz
vdr-plugin-skindesigner-22da0fccd432610f6a2ca9ea1a1c5557fb12edec.tar.bz2
added more info if debugImage is activted in config
Diffstat (limited to 'libcore')
-rw-r--r--libcore/helpers.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/libcore/helpers.c b/libcore/helpers.c
index 9604e3a..add1f7a 100644
--- a/libcore/helpers.c
+++ b/libcore/helpers.c
@@ -100,14 +100,26 @@ bool IsToken(const string& token) {
bool FileExists(const string &fullpath) {
struct stat buffer;
- return (stat (fullpath.c_str(), &buffer) == 0);
+ if (stat (fullpath.c_str(), &buffer) == 0) {
+ return true;
+ }
+ if (config.debugImageLoading) {
+ dsyslog("skindesigner: did not found %s", fullpath.c_str());
+ }
+ return false;
}
bool FileExists(const string &path, const string &name, const string &ext) {
stringstream fileName;
fileName << path << name << "." << ext;
struct stat buffer;
- return (stat (fileName.str().c_str(), &buffer) == 0);
+ if (stat (fileName.str().c_str(), &buffer) == 0) {
+ return true;
+ }
+ if (config.debugImageLoading) {
+ dsyslog("skindesigner: did not found %s", fileName.str().c_str());
+ }
+ return false;
}
bool FolderExists(const string &path) {