ShadowNinja
1008aefa8c
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
Craig Robbins
0731f9ed2a
Move globals from main.cpp to more sane locations
...
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00
est31
256e16dbea
Fix game minetest.conf default settings
...
This was a regression introduced by f6e4c5d9cf459e8278a76a2beaee59732e841458 .
2015-03-18 13:03:02 -04:00
Craig Robbins
27791ee1aa
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07 22:41:47 +10:00
gregorycu
e92dc965d8
Settings fixes Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop) Ensure variable is set Ensure settings callback is threadsafe
2015-01-25 15:23:37 +10:00
Craig Robbins
92bbfd1f8e
Revert "Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)"
...
This reverts commit a555e2d9b0ccee452996381a44677b8bec210036.
2015-01-25 01:19:40 +10:00
gregorycu
dd5fec7f5a
Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)
...
Amend the settings callback to support userdata
2015-01-23 21:27:51 -05:00
kwolekr
0cccb0ef12
Settings: Fix invalid memory access when setting not found in working mem
2014-12-12 14:39:36 -05:00
kwolekr
4433cb3626
Settings: Fail on invalid sequence and throw exception for LuaSettings
2014-12-12 00:44:17 -05:00
kwolekr
2d6a78682e
Settings: Sanitize value for multiline terminator tokens
2014-12-11 23:26:13 -05:00
kwolekr
aae5e41aa5
Add support for lacunarity in legacy NoiseParams string format
2014-12-10 01:31:43 -05:00
kwolekr
4119cf9f6d
Settings: Sanitize setting name everywhere, not just LuaSettings
2014-12-09 23:52:13 -05:00
kwolekr
bb90f4a321
Settings: Make setting entry group and values mutually exclusive
...
This greatly reduces the complexity of Settings code.
Additionally, several memory leaks were fixed.
2014-12-09 23:29:34 -05:00
kwolekr
22b22968a1
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
SmallJoker
7a2b537983
Close settings files and save them correctly
2014-12-06 14:08:01 -05:00
kwolekr
b932f38797
Settings: Various setting group fixes and enhancements
...
- 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-04 03:20:07 -05:00
kwolekr
0115c946d8
Settings: Fix getNoiseParamsFromValue()
2014-12-02 21:09:16 -05:00
kwolekr
3eee8323c9
Use setting groups for NoiseParams
...
Add format example to minetest.conf.example
Add Settings::setU16()
Throw exception on attempted access of NULL settings groups
2014-12-02 04:03:37 -05:00
sapier
898864943a
Fix settings callback "call" lost on rebase
2014-12-01 19:47:57 +01:00
Craig Robbins
74c5e74422
Fix build
...
Note: this does not fix the warnings generated by clang
2014-12-01 15:17:47 +10:00
kwolekr
0132801247
LuaSettings: Sanitize setting name strings
2014-11-30 19:01:54 -05:00
kwolekr
fa458443f0
settings: Add setting groups and multiline entries
2014-11-30 16:11:21 -05:00
sapier
794909cbe8
Implement proper font handling
2014-11-30 17:50:09 +01:00
Craig Robbins
c2a7863bc3
Stop inserting empty lines at end of minetest.conf file each time it is rewritten
...
See: https://github.com/minetest/minetest/issues/1790
2014-11-08 21:57:52 +01:00
Kahrl
74103abd73
Fix command line parsing
...
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g.
minetest --worldname world
would be parsed as
minetest --worldname --worldname
2014-09-22 11:02:26 +02:00
ShadowNinja
dbf9e444b1
Split settings into seperate source and header files
...
This also cleans up settings a bit
2014-09-21 14:39:35 -04:00