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 ************************************************************************/
24 void config_default_init()
26 config_set_default("log.min_level","error",log_minlevel_setter
);
27 config_set_default("log.max_level","info",log_maxlevel_setter
);
28 config_set_default("log.system.min_level","chat",log_sminlevel_setter
);
29 config_set_default("log.system.max_level","info",log_smaxlevel_setter
);
30 config_set_default("log.console.min_level","chat",log_cminlevel_setter
);
31 config_set_default("log.console.max_level","info",log_cmaxlevel_setter
);
33 config_set_default("path.log",NULL
,log_file_setter
);
34 config_set_default("path.data.custom",NULL
,path_custom_setter
);
35 config_set_default("path.screenshot",NULL
,path_screenshot_setter
);
36 config_set_default("path.game",NULL
,path_game_setter
);
38 config_set_default("wm.width","1024",wm_width_setter
);
39 config_set_default("wm.height","600",wm_height_setter
);
40 config_set_default("wm.framecap","30",wm_cap_setter
);
41 config_set_default("wm.fullscreen","false",wm_fullscreen_setter
);
42 config_set_default("wm.capture_format","png",NULL
);
44 config_set_default("gl.anisotropic","true",opengl_anisotropic_setter
);
45 config_set_default("gl.bilinear","true",opengl_bilinear_setter
);
46 config_set_default("gl.trilinear","true",opengl_trilinear_setter
);
47 config_set_default("gl.mipmaps","true",opengl_mipmap_setter
);
48 config_set_default("gl.particles.enabled","true",opengl_particles_setter
);
49 config_set_default("gl.particles.max","1000",opengl_particles_max_setter
);
50 config_set_default("gl.bumpmaps","true",opengl_bumpmap_setter
);
51 config_set_default("gl.psdf","true",opengl_psdf_setter
);
52 config_set_default("gl.shadows.passes","1",opengl_shadowpass_setter
);
53 config_set_default("gl.shadows.resolution","512",opengl_shadowsize_setter
);
55 config_set_default("ui.font.unifont","false",NULL
);
56 config_set_default("ui.scale","1.0",ui_scale_setter
);
57 config_set_default("ui.scale.auto","true",ui_autoscale_setter
);
60 some rtg things that will probably get used here, of sorts
61 cmd_add_setter(RTG_SETTER_LITERAL,"wm.distance",wm_distance_setter);
62 cmd_add_setter(RTG_SETTER_LITERAL,"sound.enabled",sound_setter);
63 cmd_add_setter(RTG_SETTER_LITERAL,"sound.effects.volume",sound_effects_setter);
64 cmd_add_setter(RTG_SETTER_LITERAL,"sound.music.volume",sound_music_setter);