Project

General

Profile

Bug #91 » skininfo.diff

nuka1195, 26/08/2010 09:23 PM

View differences:

guilib/SkinInfo.cpp (working copy)
CStdString strPathToUse = m_strBaseDir;
if (!strBaseDir.IsEmpty())
strPathToUse = strBaseDir;
// if the caller doesn't care about the resolution just use a temporary
RESOLUTION tempRes = INVALID;
if (!res)
res = &tempRes;
// first try and load from the current resolution's directory
if (!res)
*res = g_graphicsContext.GetVideoResolution();
*res = g_graphicsContext.GetVideoResolution();
CStdString strPath = CUtil::AddFileToFolder(strPathToUse, GetDirFromRes(*res));
strPath = CUtil::AddFileToFolder(strPath, strFile);
if (CFile::Exists(strPath))
(2-2/2)