llrender and lldir merge. Removed duplicate assets from skins. cleaned up skin textures.xml files to only include changes from default.
This commit is contained in:
@@ -223,32 +223,33 @@ std::string LLUI::getLanguage()
|
||||
//static
|
||||
std::string LLUI::locateSkin(const std::string& filename)
|
||||
{
|
||||
std::string slash = gDirUtilp->getDirDelimiter();
|
||||
std::string found_file = filename;
|
||||
if (!gDirUtilp->fileExists(found_file))
|
||||
if (gDirUtilp->fileExists(found_file))
|
||||
{
|
||||
found_file = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, filename); // Should be CUSTOM_SKINS?
|
||||
return found_file;
|
||||
}
|
||||
if (sConfigGroup && sConfigGroup->controlExists("Language"))
|
||||
|
||||
found_file = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, filename); // Should be CUSTOM_SKINS?
|
||||
if (gDirUtilp->fileExists(found_file))
|
||||
{
|
||||
if (!gDirUtilp->fileExists(found_file))
|
||||
{
|
||||
std::string localization = getLanguage();
|
||||
std::string local_skin = "xui" + slash + localization + slash + filename;
|
||||
found_file = gDirUtilp->findSkinnedFilename(local_skin);
|
||||
}
|
||||
return found_file;
|
||||
}
|
||||
if (!gDirUtilp->fileExists(found_file))
|
||||
|
||||
found_file = gDirUtilp->findSkinnedFilename(LLDir::XUI, filename);
|
||||
if (! found_file.empty())
|
||||
{
|
||||
std::string local_skin = "xui" + slash + "en-us" + slash + filename;
|
||||
found_file = gDirUtilp->findSkinnedFilename(local_skin);
|
||||
return found_file;
|
||||
}
|
||||
if (!gDirUtilp->fileExists(found_file))
|
||||
|
||||
found_file = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, filename);
|
||||
if (gDirUtilp->fileExists(found_file))
|
||||
{
|
||||
found_file = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, filename);
|
||||
return found_file;
|
||||
}
|
||||
return found_file;
|
||||
}
|
||||
LL_WARNS("LLUI") << "Can't find '" << filename
|
||||
<< "' in user settings, any skin directory or app_settings" << LL_ENDL;
|
||||
return "";
|
||||
}
|
||||
|
||||
//static
|
||||
LLVector2 LLUI::getWindowSize()
|
||||
|
||||
Reference in New Issue
Block a user