diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-05-27 03:34:42 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-05-27 03:34:42 +0000 |
commit | b7d77b4380c0a6c5b6636cf2e5ef8566a6f182a1 (patch) | |
tree | e326bfa3942c67d4da84c9d365a7e0dd706968dc /guilib | |
parent | 4d5be61af882f28db206e572ab7c87a1b7f23ce0 (diff) |
cleanup: Get rid of old references to skin and scripts dirs
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30603 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r-- | guilib/TextureManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guilib/TextureManager.cpp b/guilib/TextureManager.cpp index a0fbd5d899..9f10d2503f 100644 --- a/guilib/TextureManager.cpp +++ b/guilib/TextureManager.cpp @@ -27,6 +27,7 @@ #include "utils/CharsetConverter.h" #include "utils/log.h" #include "utils/log.h" +#include "addons/Skin.h" #ifdef _DEBUG #include "utils/TimeUtils.h" #endif @@ -345,7 +346,8 @@ int CGUITextureManager::Load(const CStdString& strTextureName, bool checkBundleO int iImages = AnimatedGifSet.LoadGIF(strPath.c_str()); if (iImages == 0) { - if (!strnicmp(strPath.c_str(), "special://home/skin/", 20) && !strnicmp(strPath.c_str(), "special://xbmc/skin/", 20)) + CStdString rootPath = strPath.Left(g_SkinInfo->Path().GetLength()); + if (0 == rootPath.CompareNoCase(g_SkinInfo->Path())) CLog::Log(LOGERROR, "Texture manager unable to load file: %s", strPath.c_str()); return 0; } |