aboutsummaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
2015-06-14Android: bypass broken wide_to_utf8 with wide_to_narrowest31
While utf8_to_wide works well, wide_to_utf8 is quite broken on android, for some reason.
2015-06-13Add utf-8 conversion utilities and re-add intlGUIEditBoxest31
2015-05-18Split ObjDef/ObjDefManager out to objdef.cppkwolekr
2015-05-11Make early protocol auth mechanism generic, and add SRPest31
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.
2015-05-01Fix several MSVC issues numeric.hSmallJoker
-> Round negative numbers correctly CMakeLists.txt -> Link Json with the static run-time library
2015-04-26Fix fast leaves with texture_clean_transparent enabled.Aaron Suen
2015-04-17Refactor around translatePasswordest31
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.
2015-04-01Clean scaling pre-filter for formspec/HUD.Aaron Suen
2015-03-31Fix set_bitskwolekr
2015-03-31GenElementManager: Pass opaque handles to Lua and rename to ObjDefManagerkwolekr
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
2015-03-22Add support for the PCG32 PRNG algo (and associated script APIs)kwolekr
2015-03-17MutexedQueue inherits must use std::deque instead of std::listLoic Blot
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07Fix Android text bug (no text displaying)Craig Robbins
2015-03-05Remove Queue class which uses std::list and use native std::queueLoic Blot
2015-03-04Use std::vector instead of std::list in StaticObjectList and ↵Loic Blot
MutexedMap::getValues()
2015-03-02Fix narrow_to_wide_c (ANDROID)Craig Robbins
* Ensure converted string is NUL terminated * Restore logic to that used prior to 9e2a9b5
2015-02-27Fix minor memory leak (Android)Craig Robbins
2015-02-23Fix wrapDegrees family of functionsCraig Robbins
wrapDegrees() (renamed to modulo360f) wrapDegrees_0_360 wrapDegrees_180 Minor errors were present in previous versions; see issue #2328
2015-02-21Move hex.h to util/Loic Blot
2015-02-21Move sha1.hpp and base64.hpp to util/Loic Blot
2015-02-16Performance Improvement: Use a cache which caches result for getFacePositions.Loic Blot
This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected. In the callgrind map, you will see original: * 3.3M calls to std::list for 9700 calls to getFacePositions In the modified version, you will see: * 3.3K calls to std::list for 6900 call to getFacePositions Callgrind map is here: #2321 it's a huge performance improvement to l_find_node_near
2015-02-12Fix gettext on MSVCBlockMen
2015-02-11Fix Android build of narrow_to_wideShadowNinja
2015-02-05Reduce gettext wide/narrow and string/char* conversionsShadowNinja
2015-01-18Water fixesgregorycu
Change must_reflow to a deque Add overload for MapBlock::raiseModified that takes a const char*. This is a speed improvement. Comment out unused variable Optimisations to block offset calculations
2015-01-16Make minor style change(unescape_string())Craig Robbins
2015-01-15Fix unescape_string removing all backslashesShadowNinja
2015-01-15Change UniqueQueue to use a queue and a set.unknown
2015-01-03Deduplicate code and use stdlib in string functionsShadowNinja
2014-11-25Fixes for Android build errors. Enable sensor landscape rotation.KodexKy
Fix typo in Android Makefile ndk path. Fix touchscreen parts of game.cpp to work after Zeno's refactor. Fix isdigit and isspace overload conflict with Android Irrlicht in string.h Enable sensor landscape rotation in Android Manifiest. Add mapgen v5 to Android build. Fix Makefile not checking leveldb. Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-21serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova
previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000() nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19Remove unused rangelim function (the macro still exists)Kahrl
2014-11-08Implement WieldMeshSceneNode which improves wield mesh renderingKahrl
- Don't create and cache an extruded mesh for every (non-node) item. Instead use a single one per image resolution. - For cubic nodes reuse a single wield mesh too - Improve lighting of the wielded item - Increase far value of wield mesh scene camera, fixes #1770 - Also includes some minor refactorings of Camera and GenericCAO.
2014-11-02Cleanup and (mostly) document util/string.h and (very) minor refactoringCraig Robbins
Updated: Incorporated feedback from 'kahrl' Updated: Moved MinetestApp::boolToCStr() from game.cpp into string.h renaming it bool_to_cstr()
2014-10-29Fix bug introduced by me (Zeno)Craig Robbins
2014-10-29Added names colours and refactored parseColorString()Craig Robbins
2014-10-29Refactor decoration-related codekwolekr
Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros
2014-10-09Fix unit reported by TimeTaker (was always ms)Kahrl
2014-10-05Add [colorize modifierBlockMen
2014-10-03Fix misc. style issueskwolekr
2014-09-28Standardize tooltip row detectionBlockMen
2014-09-21Use const references for Settings methodsShadowNinja
Also check for (this == &other) before locking mutexes.
2014-06-29Add support for Android 2.3+sapier
There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
2014-06-29Fix msvc2012 buildsapier
2014-06-29Add formspec api versioningsapier
2014-04-19Bunch of small fixes (coding style, very unlikely errors, warning messages)sapier
2014-04-12Fix write and read S32 vectorsBlockMen
2014-03-21Fix serializing of signed numbers in serializeStructToStringShadowNinja