aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_util.cpp
Commit message (Collapse)AuthorAge
* Fix minetest.request_insecure_environment() always returning nilJeija2016-02-26
| | | | Fixes #3765
* Ignore spaces in secure.trusted_mods settingJeija2016-02-19
|
* Require request_insecure_environment to be called from the mod's main scopeShadowNinja2016-02-19
| | | | | | | | | | | | | Previously you could steal a secure environment from a trusted mod by wrapping request_insecure_environment with some code like this: local rie_cp = minetest.request_insecure_environment local stolen_ie function minetest.request_insecure_environment() local ie = rie_cp() stolen_ie = stolen_ie or ie return ie end
* Don't print whole json data buffer to errorstream on errorest312016-01-28
| | | | | | `errorstream` must not be overly verbose as clientside it is directly printed onto the ingame chat window. These days, the serverlist can contain > 200k bytes, so better print it to warningstream if the data buffer is too long.
* SAPI: Move core.get_us_time() to Util modulekwolekr2015-10-26
|
* SAPI: Mark all Lua API functions requiring envlockkwolekr2015-10-25
|
* Correct comment in l_util.cppest312015-10-26
| | | | | Remove outdated loglevel list from a l_util.cpp comment, and rather point to the updated code.
* Refactor loggingShadowNinja2015-10-14
| | | | | | | | | - Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
* Use numeric indices and raw table access with LUA_REGISTRYINDEXKahrl2015-08-27
|
* Add AreaStore data structureest312015-07-27
|
* Add core.get_dir_listShadowNinja2015-05-16
|
* Add core.request_insecure_environment()ShadowNinja2015-05-16
|
* Add core.mkdirShadowNinja2015-05-16
|
* Add mod securityShadowNinja2015-05-16
| | | | Due to compatibility concerns, this is temporarily disabled.
* Make early protocol auth mechanism generic, and add SRPest312015-05-11
| | | | | | | Adds everything needed for SRP (and everything works too), but still deactivated, as protocol v25 init packets aren't final yet. Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25 inside networkprotocol.h.
* Refactor around translatePasswordest312015-04-17
| | | | | | | Change types for passed password from wstring to string, which removes converting back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary, closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for translatePassword passed as const reference.
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
| | | | | | | | | | | | 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
* Split settings into seperate source and header filesShadowNinja2014-09-21
| | | | This also cleans up settings a bit
* Add compression APIShadowNinja2014-09-20
|
* Make print() NUL-safeShadowNinja2014-05-15
|
* Organize builtin into subdirectoriesShadowNinja2014-05-07
|
* Add write_json() to the async APIShadowNinja2014-05-07
|
* Add proper lua api deprecated handlingsapier2014-04-29
|
* Remove dependency on marshal and many other async changesShadowNinja2014-04-27
| | | | | | | | | | | | This makes a number of changes: * Remove the dependency on marshal by using string.dump and loadstring. * Use lua_tolstring rather than having Lua functions pass string lengths to C++. * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs. * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality. * Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.) * Pop more unused items from the stack * Code style fixes * Other misc changes
* Rename get_json_value to read_json_valueShadowNinja2014-01-11
|
* Don't throw a error when writing JSON failsShadowNinja2013-12-18
|
* Add 'minetest.write_json'ShadowNinja2013-12-18
|
* Fix modstore/favourites hang by adding asynchronous lua job supportsapier2013-11-29
|
* Allow non-string arguments for minetest.is_yes()PilzAdam2013-09-10
|
* Add Settings interface for LuaPilzAdam2013-09-10
|
* Add minetest.parse_json, engine.parse_jsonKahrl2013-09-02
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14