1 /************************************************************************
3 * voxelands - 3d voxel world sandbox game
4 * Copyright (C) Lisa 'darkrose' Milne 2016 <lisa@ltmnet.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
18 ************************************************************************/
25 void config_default_init()
27 config_set_default("log.min_level","error",log_minlevel_setter
);
28 config_set_default("log.max_level","info",log_maxlevel_setter
);
29 config_set_default("log.system.min_level","chat",log_sminlevel_setter
);
30 config_set_default("log.system.max_level","info",log_smaxlevel_setter
);
31 config_set_default("log.console.min_level","chat",log_cminlevel_setter
);
32 config_set_default("log.console.max_level","info",log_cmaxlevel_setter
);
34 config_set_default("path.log",NULL
,log_file_setter
);
35 config_set_default("path.data.custom",NULL
,path_custom_setter
);
36 config_set_default("path.screenshot",NULL
,path_screenshot_setter
);
37 config_set_default("world.path",NULL
,path_world_setter
);
39 config_set_default("wm.width","1024",wm_width_setter
);
40 config_set_default("wm.height","600",wm_height_setter
);
41 config_set_default("wm.framecap","30",wm_cap_setter
);
42 config_set_default("wm.fullscreen","false",wm_fullscreen_setter
);
43 config_set_default("wm.capture_format","png",NULL
);
45 config_set_default("gl.anisotropic","true",opengl_anisotropic_setter
);
46 config_set_default("gl.bilinear","true",opengl_bilinear_setter
);
47 config_set_default("gl.trilinear","true",opengl_trilinear_setter
);
48 config_set_default("gl.mipmaps","true",opengl_mipmap_setter
);
49 config_set_default("gl.particles.enabled","true",opengl_particles_setter
);
50 config_set_default("gl.particles.max","1000",opengl_particles_max_setter
);
51 config_set_default("gl.bumpmaps","true",opengl_bumpmap_setter
);
52 config_set_default("gl.psdf","true",opengl_psdf_setter
);
53 config_set_default("gl.shadows.passes","1",opengl_shadowpass_setter
);
54 config_set_default("gl.shadows.resolution","512",opengl_shadowsize_setter
);
56 config_set_default("ui.font.unifont","false",NULL
);
57 config_set_default("ui.scale","1.0",ui_scale_setter
);
58 config_set_default("ui.scale.auto","true",ui_autoscale_setter
);
60 config_set_default("mapgen.queue.max","100",mapgen_queue_max_setter
);
61 config_set_default("map.seed.random","true",NULL
);
64 some rtg things that will probably get used here, of sorts
65 cmd_add_setter(RTG_SETTER_LITERAL,"wm.distance",wm_distance_setter);
66 cmd_add_setter(RTG_SETTER_LITERAL,"sound.enabled",sound_setter);
67 cmd_add_setter(RTG_SETTER_LITERAL,"sound.effects.volume",sound_effects_setter);
68 cmd_add_setter(RTG_SETTER_LITERAL,"sound.music.volume",sound_music_setter);