aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
AgeCommit message (Collapse)Author
2022-05-18Don't include client/game.h on server buildElias Fleckenstein
2022-05-06Add benchmarks for json string serialize/deserialize (#12258)paradust7
Co-authored-by: sfan5 <sfan5@live.de>
2022-05-04Make logging cost free when there is no output target (#12247)paradust7
The logging streams now do almost no work when there is no output target for them. For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
2022-02-08Remove awful Mingw32 workaroundssfan5
Instead a warning is triggered if an affected compiler is detected. closes #12022
2022-01-07Use a database for mod storage (#11763)Jude Melton-Houghton
2021-09-19Add preprocessor check for weird (incorrect) build configurationssfan5
2021-08-31Switch MapBlock compression to zstd (#10788)lhofhansl
* Add zstd support. * Rearrange serialization order * Compress entire mapblock Co-authored-by: sfan5 <sfan5@live.de>
2021-06-23Rework Settings to support arbitrary hierarchies (#11352)sfan5
2021-06-16Drop --videomodes, fullscreen_bpp and high_precision_fpu settingssfan5
These have been pointless for a while.
2021-05-03refacto: RenderingEngine is now better hiddenLoic Blot
* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
2021-01-29Settings: Purge getDefault, clean FontEngineSmallJoker
2021-01-29Settings: Proper priority hierarchySmallJoker
Remove old defaults system Introduce priority-based fallback list Use new functions for map_meta special functions Change groups to use end tags Unittest changes: * Adapt unittest to the new code * Compare Settings objects
2021-01-21Improve --version output to include Lua(JIT) versionsfan5
2020-07-14Cleanup ClientLauncher structure (#10160)SmallJoker
Remove duplicated variables and unify the startup data into a new (inherited) struct.
2020-05-07Server class code cleanups (#9769)Loïc Blot
* Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
2020-04-17Rename "subgame" to "game" in 2 error messages (#9680)Wuzzy
2020-04-16Add an option to disable unittest build, & disable them on Docker build (#9677)Loïc Blot
2020-04-15Android: add Android Studio support, completely redone java part (#9066)Maksim
2020-04-08Overall improvements to log messages (#9598)sfan5
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
2019-10-23Fix build issue due to conflicting s64 type definitions (#9064)Dmitry Marakasov
See comment in irrlichttypes.h and https://sourceforge.net/p/irrlicht/bugs/433/
2019-09-29Move Quicktune code to util/ (#8871)ANAND
2019-09-07Move debug.txt after it grows too big (#8904)HybridDog
Before opening the file for writing, its file size is tested. If it exceeds 50 MB, it is moved to debut.txt.1, otherwise the log is appended to the old messages. An old debut.txt.1 is removed if it already exists.
2019-06-21Fix handling of --color and --worldlist command line argumentsMarkus Mattes
They verify the provided value and error if a wrong value got provided command line description for color was differnt on win32 but code did not handle any differenc extended the command line description for world and worldname that it is clear that they only start a local game if used with --go Fixes #7875
2019-03-05Fix --color command line parameter ignorance (#7173)HybridDog
* Fix color command line parameter ignorance * coloured log: Support detecting the tty on windows * Print an error message when setting something invalid as color mode instead of silently using mode never * Revert "coloured log: Support detecting the tty on windows" This reverts commit 4c9fc6366487ac0e6799e181796ca594797bb6f8. It didn't work for travis and belongs to a separate PR * Allow adjusting the log color with an environment variable If --color is not passed to minetest, is used to decide on the log colorization. Minetest settings can not be used instead of an environment variable because logs may appear before loading them. * fix empty if body
2018-12-18Add command line option to load password from file (#7832)Kevin Abrams
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-08-15Save debug.txt to build dir for RUN_IN_PLACE build (#7615)pauloue
2018-08-05Replace auth.txt with SQLite auth database (#7279)Ben Deutsch
* Replace auth.txt with SQLite auth database
2018-06-13Server: move shutdown parts to a specific shutdown state object (#7437)Loïc Blot
* Server: move shutdown parts to a specific shutdown state object
2018-03-04Fix missing warningstream (or similar problem) (#7034)you
Use the --color command line parameter instead of a setting for coloured logs This fixes the missing warningstream bug, g_settings->get mustn't be used there. Also, the decision about en- or disabling log colours fits better to the command line parameters than minetest settings.
2018-03-04Allow for getting world name and path separately on the command line (#6555)Brian
Change to --worldlist instead of --world list. Gets rid of --worldpath parameter added as part of this pull request, instead moving the listing function to a command --worldlist that accepts either name, path, or both and prints out the corresponding information.
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-09-28Server: affect bind_addr on constructor instead of start() (#6474)Loïc Blot
bind_addr is already ready when using constructor as we read is.IPv6 from it, instead pass the whole address
2017-09-07main.cpp: server-only builds should not include client headersLoic Blot
2017-09-03Add build date to minetest --version and increase readability (#6331)you
2017-08-30Remove DSTACK support (#6346)Loïc Blot
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
2017-08-24Network cleanup (#6302)Loïc Blot
* Cleanup network headers * Move peerhandler to a specific header to reduce compilation times * Move socket.cpp/h to network folder * More work * Network code cleanups * Move socket.{cpp,h} to network folder * Move Address object to network/address.{cpp,h} * Move network exceptions to network/networkexceptions.h * Client: use unique_ptr for Connection * Server/ClientIface: use shared_ptr for Connection * Format fixes * Remove socket.cpp socket.h from clang-format whitelist * Also fix NetworkPacket code style & make it under clang-format
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-18Optimize headers (part 2) (#6272)Loïc Blot
* Optimize headers (part 2) * less debug.h in headers * less remoteplayer.h for everybody * Cleanup (part 2) * camera.h: mesh.h * mapgen.h: mapnode.h * serverenvironment.h: mapblock.h * nodedef.h: shader.h
2017-08-18Modernize various files (src/m*) (#6267)Loïc Blot
* Modernize various files (src/m*) * range-based for loops * code style * C++ headers instead of C headers * Default operators * empty function Thanks to clang-tidy
2017-08-16Cleanup various headers to reduce compilation times (#6255)Loïc Blot
* Cleanup various headers to reduce compilation times
2017-06-17Cpp11 initializers 2 (#5999)Loïc Blot
* C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
2017-04-28Clean up getTime helpersShadowNinja
This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
2017-04-23Player data to Database (#5475)Loïc Blot
* Player data to Database Add player data into databases (SQLite3 & PG only) PostgreSQL & SQLite: better POO Design for databases Add --migrate-players argument to server + deprecation warning * Remove players directory if empty
2017-04-07Windows: Skip cmd for release builds (#5416)adrido
2017-03-18Server list cleanupShadowNinja
This removes the hacky server_dedicated pseudo-setting.
2016-10-25Windows: dont link to libraries that are already linked by cmakeadrido
This solves the problem whith building where build fails if the libaries have different names.
2016-05-17DB::loadBlock copy removal & DB backend cleanupLoic Blot
* Remove the copy from db::loadBlock by using a pointer to the destination * cleanup db backend, the child backend doesn't have to set their functions as virtual
2016-05-11Fix typo in the info printed by --versionCraig Robbins
2016-05-11Add platform name to --version informationCraig Robbins