1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Settings: Sanitize setting name everywhere, not just LuaSettings

This commit is contained in:
kwolekr
2014-12-09 23:52:13 -05:00
parent d50878d608
commit 88c28414f4
4 changed files with 12 additions and 14 deletions

View File

@@ -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);