Bug #91 » skininfo.diff
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))
|
- « Previous
- 1
- 2
- Next »