Adds sorting to the settings class so when it saves out to file, it puts them in alphabetical order which keeps things consistent.

This commit is contained in:
Areloch 2020-08-23 14:29:17 -05:00
parent 93ce5d0cfa
commit 3f676e0966
2 changed files with 38 additions and 20 deletions

View file

@ -66,6 +66,8 @@ public:
//S32 buildSearchList(const char* pattern, bool deepSearch = false, bool defaultsSearch = false);
const char* findFirstValue(const char* pattern, bool deepSearch = false, bool includeDefaults = false);
const char* findNextValue();
};
class SettingSaveNode
@ -105,6 +107,8 @@ public:
void buildDocument(SimXMLDocument *document, bool skipWrite = false);
void clear();
static S32 _NodeCompare(SettingSaveNode* const* a, SettingSaveNode* const* b);
};
#endif
#endif