aboutsummaryrefslogtreecommitdiff
path: root/src/settings.h
AgeCommit message (Collapse)Author
2014-12-12Settings: Fail on invalid sequence and throw exception for LuaSettingskwolekr
2014-12-11Settings: Sanitize value for multiline terminator tokenskwolekr
2014-12-09Settings: Sanitize setting name everywhere, not just LuaSettingskwolekr
2014-12-09Settings: Make setting entry group and values mutually exclusivekwolekr
This greatly reduces the complexity of Settings code. Additionally, several memory leaks were fixed.
2014-12-04Settings: Various setting group fixes and enhancementskwolekr
- Remove blank setting values when setting has a group - Pair setting values with groups in file when possible - Preserve user-set whitespace in setting objects - Delete setting value when setting NoiseParams group - Delete overwritten groups outside of lock
2014-12-02Use setting groups for NoiseParamskwolekr
Add format example to minetest.conf.example Add Settings::setU16() Throw exception on attempted access of NULL settings groups
2014-11-30LuaSettings: Sanitize setting name stringskwolekr
2014-11-30settings: Add setting groups and multiline entrieskwolekr
2014-11-30Implement proper font handlingsapier
2014-09-21Split settings into seperate source and header filesShadowNinja
This also cleans up settings a bit
2014-09-21Fix Settings lockingShadowNinja
2014-09-21Use const references for Settings methodsShadowNinja
Also check for (this == &other) before locking mutexes.
2014-09-21Make getters of the Settings class constCraig Robbins
Also removed 2 unused functions.
2014-04-19Bunch of small fixes (coding style, very unlikely errors, warning messages)sapier
2014-02-15Add minetest.set_noiseparam_defaults() Lua APIkwolekr
2014-02-08Make flag strings clear specified flag with 'no' prefixkwolekr
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
2014-02-05Remove blank default values for emergequeue_limit_* settingskwolekr
Add checks for invalid user input for important settings Rename Settings::tryGet* to Settings::get*NoEx for consistency
2014-02-05Revert "Fix settings to honor numeric conversion errors"kwolekr
This reverts commit 3f376a092e1c16429fb52f24736e9da98aff4cd5.
2014-02-04Fix settings to honor numeric conversion errorssapier
Rename try* non exceptioning functions to *NoEx
2014-02-03Settings: Add no-exception variants of each get methodkwolekr
2013-12-01Cleanup jthread and fix win32 buildsapier
2013-09-15Always use builtin JThread librarykwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-08-13Dont write directly to files but rather write and copy a tmp filePilzAdam
2013-05-19Remove no virtual dtor warnings, make MapgenParams contain actual NoiseParamskwolekr
2013-03-16initial mapgen indev version with farscale feature and huge cavesproller
2013-03-11Migrate to STL containers/algorithms.Ilya Zhuravlev
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-02-06Add flag string settings, flat map optionkwolekr
2013-01-22Make sure that settings are written to config file when settings are removed.Jürgen Doser
Previously, settings where only written when a value has changed, and removal of a setting value didn't count as a change.
2013-01-21Last set of minor cleanupskwolekr
2013-01-21Finish and clean up mapgen configurationkwolekr
2013-01-21Add Settings::getStruct and Settings::setStructkwolekr
2013-01-21The new mapgen, noise functions, et al.kwolekr
2013-01-21Basic support for configuring which mods to load for each worldJürgen Doser
settings.h: added function to return all keys used in settings, and a function to remove a setting mods.{h,cpp}: added class ModConfiguration that represents a subset of the installed mods. server.{h,cpp}: server does not load add-on mods that are disabled in the world.mt file. mods are disabled by a setting of the form "load_mod_<modname> = false". if no load_mod_<modname> = ... setting is found, the mod is loaded anyways for backwards compatibilty. server also complains to errorstream about mods with unstatisfied dependencies and about mods that are not installed. guiConfigureWorld.{h,cpp}: shows a treeview of installed add-on mods and modpacks with little icons in front of their name indicating their status: a checkmark for enabled mods, a cross for disabled mods, a question mark for "new" mods Mods can be enabled/disabled by a checkbox. Mods also show a list of dependencies and reverse dependencies. double-click on a mod in dependency or reverse dependency listbox selects the corresponding mod. Enabling a mod also enables all its dependencies. Disabling a mod also disables all its reverse dependencies. For modpacks, show buttons to enable/disable all mods (recursively, including their dependencies) in it. Button "Save" saves the current settings to the world.mt file and returns to the main menu. Button "Cancel" returns to main menu without saving. basic keyboard controls (if the proper widget has keyboard focus): up/down: scroll through tree of mods left/right: collaps/expand a modpack space: enable/disable the selected mod
2012-06-17Optimize headersPerttu Ahola
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-05-20Comment out unnecessary debug output in SettingsPerttu Ahola
2012-03-13Allow directly supplying world as a parameter, including world.mtPerttu Ahola
2012-03-11Clean up log messages everywherePerttu Ahola
2012-03-11Do not print errors when searching for usable configuration filePerttu Ahola
2012-03-11Fix configuration file behaviourPerttu Ahola
- Do not rewrite if nothing needs to be changed - Update at program exit, in addition to updating when continuing from main menu to game
2011-11-29Some MSVC fixesPerttu Ahola
2011-10-16Use the logger; also, default to not showing much crap in console. Use ↵Perttu Ahola
--info-on-stderr to enable crap.
2011-10-15mobv2Perttu Ahola
2011-10-12Header file tweaking; mainly for speedPerttu Ahola