2 #include "client/client_config.h"
4 struct ClientConfig client_config = {
7 .view_distance = 255.0,
12 #define NUM_CONFIG_ENTRIES 5
13 static ConfigEntry config_entries[NUM_CONFIG_ENTRIES] = {
16 .key = "antialiasing",
17 .value = &client_config.antialiasing,
22 .value = &client_config.mipmap,
26 .key = "view_distance",
27 .value = &client_config.view_distance,
32 .value = &client_config.vsync,
36 .key = "meshgen_threads",
37 .value = &client_config.meshgen_threads,
41 __attribute__((constructor)) static void client_config_init()
43 config_read("client.conf", config_entries, NUM_CONFIG_ENTRIES);
46 __attribute__((destructor)) static void client_config_deinit()
48 config_free(config_entries, NUM_CONFIG_ENTRIES);