Move generation from settingtypes out of dlg_settings_advanced
authorTim <t4im@users.noreply.github.com>
Wed, 27 Jul 2016 16:41:16 +0000 (18:41 +0200)
committerest31 <MTest31@outlook.com>
Sat, 20 Aug 2016 13:48:47 +0000 (15:48 +0200)
commitba501273094b0c6c77404610f2dee81c031d0074
tree57ee8a2c2288557e0221927214a430758d3c547b
parenta4962240bdf7ddc221c477ada1c2a99c1aee3e2e
Move generation from settingtypes out of dlg_settings_advanced

Avoids unreachable code linter warning by moving generation code
(of minetest.conf.example and settings_translation_file.cpp)
out of dlg_settings_advanced.

Due to passing the settings, also it avoids reading the settings file twice.

Instead of activating the code by changing the active if-clauses,
its activation is now done by uncommenting the loadfile() statement.
builtin/mainmenu/dlg_settings_advanced.lua
builtin/mainmenu/generate_from_settingtypes.lua [new file with mode: 0644]