Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
coresettings.inc
to be used e.g. as follows:
#define CORE_SETTING(name, default, type, getter) settings->setDefault(#name, default)
#include "coresettings.inc"
#undef CORE_SETTING
or:
struct CoreSettings {
#define CORE_SETTING(name, default, type, getter) type name
#include "coresettings.inc"
#undef CORE_SETTING
};
extern CoreSettings g_core_settings;
*/
CORE_SETTING(new_style_leaves, "true", bool, getBool);
CORE_SETTING(enable_shaders, "true", bool, getBool);
//...
CORE_SETTING(viewing_range_nodes_max, "240", s16, getS16);
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment