add some debug logging, fix broken indentation
parent
5a912d7385
commit
a35fec156e
|
|
@ -100,6 +100,10 @@ void LLFeatureList::addFeature(const std::string& name, const BOOL available, co
|
|||
}
|
||||
|
||||
LLFeatureInfo fi(name, available, level);
|
||||
LL_DEBUGS_ONCE("RenderInit") << "Feature '" << name << "' "
|
||||
<< (available ? "" : "not " ) << "available"
|
||||
<< " at " << level
|
||||
<< LL_ENDL;
|
||||
mFeatures[name] = fi;
|
||||
}
|
||||
|
||||
|
|
@ -121,6 +125,7 @@ F32 LLFeatureList::getRecommendedValue(const std::string& name)
|
|||
{
|
||||
if (mFeatures.count(name) && isFeatureAvailable(name))
|
||||
{
|
||||
LL_DEBUGS_ONCE("RenderInit") << "Setting '" << name << "' to recommended value " << mFeatures[name].mRecommendedLevel << LL_ENDL;
|
||||
return mFeatures[name].mRecommendedLevel;
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +135,7 @@ F32 LLFeatureList::getRecommendedValue(const std::string& name)
|
|||
|
||||
BOOL LLFeatureList::maskList(LLFeatureList &mask)
|
||||
{
|
||||
//LL_INFOS() << "Masking with " << mask.mName << LL_ENDL;
|
||||
LL_DEBUGS_ONCE() << "Masking with " << mask.mName << LL_ENDL;
|
||||
//
|
||||
// Lookup the specified feature mask, and overlay it on top of the
|
||||
// current feature mask.
|
||||
|
|
@ -296,7 +301,7 @@ bool LLFeatureManager::loadFeatureTables()
|
|||
app_path += filename;
|
||||
|
||||
|
||||
// second table is downloaded with HTTP
|
||||
// second table is downloaded with HTTP - note that this will only be used on the run _after_ it is downloaded
|
||||
std::string http_path = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, http_filename);
|
||||
|
||||
// use HTTP table if it exists
|
||||
|
|
@ -380,11 +385,11 @@ bool LLFeatureManager::parseFeatureTable(std::string filename)
|
|||
file >> name;
|
||||
if (!mMaskList.count(name))
|
||||
{
|
||||
flp = new LLFeatureList(name);
|
||||
mMaskList[name] = flp;
|
||||
}
|
||||
else
|
||||
{
|
||||
flp = new LLFeatureList(name);
|
||||
mMaskList[name] = flp;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS("RenderInit") << "Overriding mask " << name << ", this is invalid!" << LL_ENDL;
|
||||
parse_ok = false;
|
||||
}
|
||||
|
|
@ -393,11 +398,11 @@ bool LLFeatureManager::parseFeatureTable(std::string filename)
|
|||
{
|
||||
if (flp)
|
||||
{
|
||||
S32 available;
|
||||
F32 recommended;
|
||||
file >> available >> recommended;
|
||||
flp->addFeature(name, available, recommended);
|
||||
}
|
||||
S32 available;
|
||||
F32 recommended;
|
||||
file >> available >> recommended;
|
||||
flp->addFeature(name, available, recommended);
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS("RenderInit") << "Specified parameter before <list> keyword!" << LL_ENDL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue