diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-03-10 00:22:41 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-03-10 00:22:41 +0000 |
commit | 70caf89e92d4b65a5c4627468ba889b4c95d3eed (patch) | |
tree | b830ea34ba1d04aa7e46b4b8c203af4f63d5dab8 /guilib | |
parent | 7b7e4df337abc116e7c5eb8d7227b59d2710f919 (diff) |
cleanup: Use HasSkinFile() rather than CFile::Exists(GetSkinPath()) all the time.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28506 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r-- | guilib/SkinInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guilib/SkinInfo.cpp b/guilib/SkinInfo.cpp index 15871ef62d..df61147f23 100644 --- a/guilib/SkinInfo.cpp +++ b/guilib/SkinInfo.cpp @@ -98,8 +98,7 @@ bool CSkinInfo::Check(const CStdString& strSkinDir) CLog::Log(LOGERROR, "%s(%s) version is to old (%f versus %f)", __FUNCTION__, strSkinDir.c_str(), info.GetVersion(), GetMinVersion()); return false; } - if (!CFile::Exists(info.GetSkinPath("Home.xml")) - || !CFile::Exists(info.GetSkinPath("Font.xml"))) + if (!info.HasSkinFile("Home.xml") || !info.HasSkinFile("Font.xml")) { CLog::Log(LOGERROR, "%s(%s) does not contain Home.xml or Font.xml", __FUNCTION__, strSkinDir.c_str()); return false; |