diff options
author | Oz Linden <oz@lindenlab.com> | 2013-09-05 22:06:16 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-09-05 22:06:16 -0400 |
commit | 980802e46859dc31f14d20e558a4e955e6976f48 (patch) | |
tree | 3b1328ec5505a6f7764f6bcaa7d2cfe4038b13e0 /indra/newview/llfeaturemanager.h | |
parent | 6e1138585bf745f73f0bb99ca62f77eeb273f1e4 (diff) |
STORM-1552: detect, ignore, and delete invalid feature and gpu table files
Diffstat (limited to 'indra/newview/llfeaturemanager.h')
-rwxr-xr-x | indra/newview/llfeaturemanager.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/indra/newview/llfeaturemanager.h b/indra/newview/llfeaturemanager.h index 3b8d251236..95141b241d 100755 --- a/indra/newview/llfeaturemanager.h +++ b/indra/newview/llfeaturemanager.h @@ -75,7 +75,7 @@ public: void setFeatureAvailable(const std::string& name, const BOOL available); void setRecommendedLevel(const std::string& name, const F32 level); - BOOL loadFeatureList(LLFILE *fp); + bool loadFeatureList(LLFILE *fp); BOOL maskList(LLFeatureList &mask); @@ -114,7 +114,7 @@ public: void maskCurrentList(const std::string& name); // Mask the current feature list with the named list - BOOL loadFeatureTables(); + bool loadFeatureTables(); EGPUClass getGPUClass() { return mGPUClass; } std::string& getGPUString() { return mGPUString; } @@ -157,9 +157,14 @@ public: void fetchHTTPTables(); protected: - void loadGPUClass(); - BOOL parseFeatureTable(std::string filename); - void parseGPUTable(std::string filename); + bool loadGPUClass(); + + bool parseFeatureTable(std::string filename); + ///< @returns TRUE is file parsed correctly, FALSE if not + + bool parseGPUTable(std::string filename); + ///< @returns true if file parsed correctly, false if not - does not reflect whether or not the gpu was recognized + void initBaseMask(); |