From 626b0b7e6a61d329e2b94a0f1ca15db6625b5e5d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 3 Feb 2019 17:54:56 +0000 Subject: Add setting to hide mature content from ContentDB --- src/defaultsettings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/defaultsettings.cpp') diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 95e03b1a9..1df6dccb6 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -300,7 +300,11 @@ void set_default_settings(Settings *settings) settings->setDefault("font_size", font_size_str); settings->setDefault("mono_font_size", font_size_str); settings->setDefault("contentdb_url", "https://content.minetest.net"); - settings->setDefault("show_nonfree_packages", "false"); +#ifdef __ANDROID__ + settings->setDefault("contentdb_flag_blacklist", "nonfree, android_default"); +#else + settings->setDefault("contentdb_flag_blacklist", "nonfree, desktop_default"); +#endif // Server -- cgit v1.2.3