mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed bug that hasposter is only true if poster really exists
This commit is contained in:
@@ -90,6 +90,11 @@ bool isNumber(const string& s) {
|
||||
return !s.empty() && it == s.end();
|
||||
}
|
||||
|
||||
bool FileExists(const string &fullpath) {
|
||||
struct stat buffer;
|
||||
return (stat (fullpath.c_str(), &buffer) == 0);
|
||||
}
|
||||
|
||||
bool FileExists(const string &path, const string &name, const string &ext) {
|
||||
stringstream fileName;
|
||||
fileName << path << name << "." << ext;
|
||||
|
@@ -12,6 +12,7 @@ int Minimum(int a, int b, int c, int d, int e, int f);
|
||||
std::string CutText(string &text, int width, string fontName, int fontSize);
|
||||
std::string StrToLowerCase(string str);
|
||||
bool isNumber(const string& s);
|
||||
bool FileExists(const string &fullpath);
|
||||
bool FileExists(const string &path, const string &name, const string &ext);
|
||||
bool FolderExists(const string &path);
|
||||
bool FirstFileInFolder(string &path, string &extension, string &fileName);
|
||||
|
Reference in New Issue
Block a user