mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
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:
parent
93ce5d0cfa
commit
3f676e0966
2 changed files with 38 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue