mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added more info if debugImage is activted in config
This commit is contained in:
parent
6872e29fe6
commit
22da0fccd4
1
HISTORY
1
HISTORY
@ -289,4 +289,5 @@ Version 0.4.2
|
|||||||
- fixed bug that datetime was not drawn correctly in menus
|
- fixed bug that datetime was not drawn correctly in menus
|
||||||
- fixed bug that string tokens are not evaluated in area conditions
|
- fixed bug that string tokens are not evaluated in area conditions
|
||||||
- added possibility to draw a debug grid in views
|
- added possibility to draw a debug grid in views
|
||||||
|
- added more info if debugImage is activted in config
|
||||||
|
|
||||||
|
@ -100,14 +100,26 @@ bool IsToken(const string& token) {
|
|||||||
|
|
||||||
bool FileExists(const string &fullpath) {
|
bool FileExists(const string &fullpath) {
|
||||||
struct stat buffer;
|
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) {
|
bool FileExists(const string &path, const string &name, const string &ext) {
|
||||||
stringstream fileName;
|
stringstream fileName;
|
||||||
fileName << path << name << "." << ext;
|
fileName << path << name << "." << ext;
|
||||||
struct stat buffer;
|
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) {
|
bool FolderExists(const string &path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user