mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Settings: Sanitize setting name everywhere, not just LuaSettings
This commit is contained in:
parent
d50878d608
commit
88c28414f4
4 changed files with 12 additions and 14 deletions
|
@ -55,6 +55,7 @@ struct ValueSpec {
|
|||
type = a_type;
|
||||
help = a_help;
|
||||
}
|
||||
|
||||
ValueType type;
|
||||
const char *help;
|
||||
};
|
||||
|
@ -112,7 +113,6 @@ public:
|
|||
const std::string &end, u32 tab_depth=0);
|
||||
|
||||
static std::string getMultiline(std::istream &is, size_t *num_lines=NULL);
|
||||
static std::string sanitizeString(const std::string &value);
|
||||
static void printEntry(std::ostream &os, const std::string &name,
|
||||
const SettingsEntry &entry, u32 tab_depth=0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue