diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llxml/llcontrol.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llxml/llcontrol.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/llxml/llcontrol.cpp b/linden/indra/llxml/llcontrol.cpp index b9fa8ff..d185987 100644 --- a/linden/indra/llxml/llcontrol.cpp +++ b/linden/indra/llxml/llcontrol.cpp | |||
@@ -682,6 +682,8 @@ U32 LLControlGroup::loadFromFileLegacy(const LLString& filename, BOOL require_de | |||
682 | 682 | ||
683 | llassert(control); | 683 | llassert(control); |
684 | 684 | ||
685 | mLoadedSettings.insert(name); | ||
686 | |||
685 | switch(control->mType) | 687 | switch(control->mType) |
686 | { | 688 | { |
687 | case TYPE_F32: | 689 | case TYPE_F32: |
@@ -905,6 +907,8 @@ U32 LLControlGroup::loadFromFile(const LLString& filename, BOOL require_declarat | |||
905 | 907 | ||
906 | llassert(control); | 908 | llassert(control); |
907 | 909 | ||
910 | mLoadedSettings.insert(name); | ||
911 | |||
908 | switch(control->mType) | 912 | switch(control->mType) |
909 | { | 913 | { |
910 | case TYPE_F32: | 914 | case TYPE_F32: |
diff --git a/linden/indra/llxml/llcontrol.h b/linden/indra/llxml/llcontrol.h index 4a86adf..e717bf1 100644 --- a/linden/indra/llxml/llcontrol.h +++ b/linden/indra/llxml/llcontrol.h | |||
@@ -200,11 +200,14 @@ public: | |||
200 | typedef std::map<LLString, LLPointer<LLControlBase> > ctrl_name_table_t; | 200 | typedef std::map<LLString, LLPointer<LLControlBase> > ctrl_name_table_t; |
201 | ctrl_name_table_t mNameTable; | 201 | ctrl_name_table_t mNameTable; |
202 | std::set<LLString> mWarnings; | 202 | std::set<LLString> mWarnings; |
203 | 203 | std::set<LLString> mLoadedSettings; // Filled in with names loaded from settings.xml | |
204 | |||
204 | public: | 205 | public: |
205 | LLControlGroup(); | 206 | LLControlGroup(); |
206 | ~LLControlGroup(); | 207 | ~LLControlGroup(); |
207 | void cleanup(); | 208 | void cleanup(); |
209 | bool hasLoaded(const LLString& name) { return mLoadedSettings.find(name) != mLoadedSettings.end(); } | ||
210 | void clearLoaded() { mLoadedSettings.clear(); } // Call once we've done any settings tweaks which may need this data | ||
208 | 211 | ||
209 | LLControlBase* getControl(const LLString& name); | 212 | LLControlBase* getControl(const LLString& name); |
210 | LLSD registerListener(const LLString& name, LLSimpleListenerObservable *listener); | 213 | LLSD registerListener(const LLString& name, LLSimpleListenerObservable *listener); |