mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Settings: pass name to callbacks by reference
Spare some copies.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user