diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-02-03 17:54:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-03 17:54:56 +0000 |
commit | 626b0b7e6a61d329e2b94a0f1ca15db6625b5e5d (patch) | |
tree | 2911a4f2c6fe048f7b2c7b393268c8695442f0c0 /src/defaultsettings.cpp | |
parent | 9a071d66a59bd0db72d09a3ca75b2ab9247dda92 (diff) | |
download | minetest-626b0b7e6a61d329e2b94a0f1ca15db6625b5e5d.tar.gz minetest-626b0b7e6a61d329e2b94a0f1ca15db6625b5e5d.tar.bz2 minetest-626b0b7e6a61d329e2b94a0f1ca15db6625b5e5d.zip |
Add setting to hide mature content from ContentDB
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r-- | src/defaultsettings.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 |