mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Settings: pass name to callbacks by reference
Spare some copies.
This commit is contained in:
parent
4ece2b9e32
commit
cb8978fb1d
4 changed files with 5 additions and 4 deletions
|
@ -36,7 +36,7 @@ extern Settings *g_settings;
|
|||
extern std::string g_settings_path;
|
||||
|
||||
/** function type to register a changed callback */
|
||||
typedef void (*setting_changed_callback)(const std::string, void*);
|
||||
typedef void (*setting_changed_callback)(const std::string &name, void *data);
|
||||
|
||||
enum ValueType {
|
||||
VALUETYPE_STRING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue