#include "settings.h"
#include "filesys.h"
+#include "config.h"
void set_default_settings(Settings *settings)
{
settings->setDefault("continuous_forward", "false");
settings->setDefault("fast_move", "false");
settings->setDefault("invert_mouse", "false");
- settings->setDefault("enable_farmesh", "false");
settings->setDefault("enable_clouds", "true");
settings->setDefault("screenshot_path", ".");
settings->setDefault("view_bobbing_amount", "1.0");
settings->setDefault("bilinear_filter", "false");
settings->setDefault("trilinear_filter", "false");
settings->setDefault("preload_item_visuals", "true");
- settings->setDefault("enable_shaders", "2");
settings->setDefault("enable_bumpmapping", "false");
+ settings->setDefault("enable_shaders", "true");
settings->setDefault("repeat_rightclick_time", "0.25");
settings->setDefault("enable_particles", "true");
settings->setDefault("server_name", "");
settings->setDefault("server_description", "");
+#if USE_FREETYPE
+ settings->setDefault("freetype", "true");
settings->setDefault("font_path", porting::getDataPath("fonts" DIR_DELIM "liberationsans.ttf"));
settings->setDefault("font_size", "13");
settings->setDefault("mono_font_path", porting::getDataPath("fonts" DIR_DELIM "liberationmono.ttf"));
settings->setDefault("mono_font_size", "13");
+ settings->setDefault("fallback_font_path", porting::getDataPath("fonts" DIR_DELIM "DroidSansFallbackFull.ttf"));
+ settings->setDefault("fallback_font_size", "13");
+#else
+ settings->setDefault("freetype", "false");
+ settings->setDefault("font_path", porting::getDataPath("fonts" DIR_DELIM "fontlucida.png"));
+ settings->setDefault("mono_font_path", porting::getDataPath("fonts" DIR_DELIM "fontdejavusansmono.png"));
+#endif
// Server stuff
// "map-dir" doesn't exist by default.
settings->setDefault("default_game", "minetest");
settings->setDefault("motd", "");
- settings->setDefault("max_users", "100");
+ settings->setDefault("max_users", "15");
settings->setDefault("strict_protocol_version_checking", "false");
settings->setDefault("creative_mode", "false");
settings->setDefault("enable_damage", "true");
settings->setDefault("max_clearobjects_extra_loaded_blocks", "4096");
settings->setDefault("time_send_interval", "5");
settings->setDefault("time_speed", "72");
+ settings->setDefault("year_days", "30");
settings->setDefault("server_unload_unused_data_timeout", "29");
+ settings->setDefault("max_objects_per_block", "49");
settings->setDefault("server_map_save_interval", "5.3");
+ settings->setDefault("sqlite_synchronous", "2");
settings->setDefault("full_block_send_enable_min_time_from_building", "2.0");
settings->setDefault("dedicated_server_step", "0.1");
settings->setDefault("ignore_world_load_errors", "false");
settings->setDefault("liquid_relax", "2");
settings->setDefault("liquid_fast_flood", "1");
settings->setDefault("underground_springs", "1");
+ settings->setDefault("weather", "false");
//mapgen stuff
settings->setDefault("mg_name", "v6");
settings->setDefault("mgmath_generator", "mandelbox");
+ settings->setDefault("curl_timeout", "5000");
+
// IPv6
settings->setDefault("enable_ipv6", "true");
settings->setDefault("ipv6_server", "false");
- settings->setDefault("modstore_download_url", "http://forum.minetest.net/media/");
- settings->setDefault("modstore_listmods_url", "http://forum.minetest.net/mmdb/mods/");
- settings->setDefault("modstore_details_url", "http://forum.minetest.net/mmdb/mod/*/");
+ settings->setDefault("main_menu_script","");
+ settings->setDefault("main_menu_mod_mgr","1");
+ settings->setDefault("main_menu_game_mgr","0");
+ settings->setDefault("modstore_download_url", "https://forum.minetest.net/media/");
+ settings->setDefault("modstore_listmods_url", "https://forum.minetest.net/mmdb/mods/");
+ settings->setDefault("modstore_details_url", "https://forum.minetest.net/mmdb/mod/*/");
+
+ settings->setDefault("high_precision_fpu", "true");
+ settings->setDefault("language", "");
}
void override_default_settings(Settings *settings, Settings *from)