summaryrefslogtreecommitdiffstats
path: root/src/main.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bulk clearing of whitespaceLogicParrot2016-02-051-7/+7
|
* Fix running as a service.Anthony Birkett2016-01-211-0/+3
| | | | | | | | | | Two problems identified, both traced to commit 4315a11 (main.cpp) ParseArguments() was no longer being called before checking cRoot::m_RunAsService. This led to m_RunAsService never being set (we use -d on the command line to instigate a service start). (Root.cpp) Terminate events were being ignored when running as a service. We only need to ignore the cin.good() call, not terminate events as a whole.
* Fixed Clang warnings.Mattes D2016-01-061-14/+25
|
* Added the _UNICODE flag on WindowsTiger Wang2015-09-261-8/+8
|
* Maked it compileable for clang-3.7Lukas Pioch2015-09-251-2/+2
|
* Namechange to CuberiteMattes D2015-09-251-6/+6
|
* Ignore Sigpipetycho2015-09-191-0/+4
|
* Increase robustness of the logging subsystemtycho2015-09-151-0/+1
|
* Fixed and improved restartingTiger Wang2015-08-201-33/+32
| | | | | Restarts are now an actual, close-as-possible to application exit+reopen.
* Checked LeakFinder in MSVC2015, enabled support for it.Mattes D2015-08-101-3/+4
|
* Daemon support on Linux.Anthony Birkett2015-06-051-12/+34
| | | | Added null console log listener, avoid printf() when stdout is closed.
* Added cmdline params for crashdump detailness.Mattes D2015-06-021-94/+77
| | | | | Win32-only, also fixed the call scripts. Fixes #2184.
* Use the new style command line parameters for Windows Service support.Anthony Birkett2015-06-011-10/+9
| | | | | Ignore invalid or malformed command line parameters, prevent unhandled exceptions. NOTE: Users will need to reinstall the service, now uses "-d" instead of "/service" in the start parameters.
* Moved no buffering command line argument to tclaptycho2015-05-201-5/+8
|
* Move commlog arguments over to TCLAPtycho2015-05-201-25/+18
|
* Add support for setting ports through command linetycho2015-05-181-1/+12
|
* Fix max slots logic to only override if acctually present.tycho2015-05-181-4/+9
|
* Fix service Mainworktycho2015-05-161-1/+1
|
* Move make_unique into a namespace to avoid ADL issuestycho2015-05-161-1/+1
| | | | this prevents VS finding std::make_unique for constructors that take types from std
* Initial implementation of IniFile overloadingtycho2015-05-161-7/+35
|
* Print Build info as part of the crash informationworktycho2015-05-041-0/+9
|
* Fixed MSVC warnings, improved comments.Mattes D2015-04-061-5/+5
|
* Fixed crash on exit introduced with Windows Service capability.Mattes D2015-04-051-7/+14
| | | | Ref.: #1845
* Working as a Windows service. Starts and stops correctly.Anthony Birkett2015-04-011-33/+191
| | | | | | | | | Added "/service" switch, to prompt the binary to attempt starting as a service. Added service* methods, to control service startup. Split up main() into universalMain(), which contains the startup code for both service and normal start. Added cRoot::m_RunningAsService bool, Added cRoot::SetStopping(bool) to allow a stop request to be sent by the service controller. Added cBlockIDMap::init() to avoid loading items.ini before the working directory has been set.
* Added cNetwork initialization to program start.Mattes D2015-03-181-0/+4
| | | | Otherwise the server could crash because MSVC doesn't implement magic statics yet.
* Added network termination called at app exit.Mattes D2015-01-271-2/+9
| | | | This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
* Merged branch 'origin/master' into c++11.Mattes D2014-12-041-1/+6
|\
| * Removed unneeded include.Mattes D2014-11-291-1/+0
| |
| * Added a basic stacktracing for assert and signal failures.Mattes D2014-11-291-0/+6
| |
| * Windows: Fixed builds with LeakFinder enabled.Mattes D2014-11-261-1/+1
| |
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-4/+4
| |
* | Windows close handlers handles more closesTiger Wang2014-10-211-5/+2
| |
* | En masse NULL -> nullptr replaceTiger Wang2014-10-201-4/+4
| |
* | Migrated cSleep and cTimer to std::chronoTiger Wang2014-10-201-1/+4
|/
* Renamed LoggersTycho2014-08-121-1/+1
|
* First Implementatation of new Loggin frameworkTycho2014-08-101-0/+2
|
* Normalized spaces after "catch".madmaxoft2014-07-211-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-5/+5
|
* main.cpp: field style fixesarchshift2014-07-201-7/+7
|
* main.cpp: Fixed warnings with g_TERMINATE_EVENT_RAISED and g_SERVER_TERMINATEDarchshift2014-07-191-4/+4
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed spaces around single-line comments.madmaxoft2014-07-171-9/+9
| | | | There should be at least two spaces in front and one space after //-style comments.
* Fixed basic whitespace problems.madmaxoft2014-07-171-2/+2
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* abort does not take a parameter.worktycho2014-06-011-2/+2
|
* Use abort in SIGSEGV and SIGABRT handlersworktycho2014-06-011-2/+2
| | | This should cause Mcserver to generate core dumps when it crashes.
* Fixed a few unneeded breaksTycho2014-03-141-1/+0
|
* Added a "nooutbuf" cmdline param.madmaxoft2014-02-271-11/+16
| | | | This forces that the stdout stream uses no buffer, even when not a TTY. Used for running MCServer under ZeroBraneStudio.
* Disabled the leak finder.madmaxoft2014-02-201-1/+3
|
* SIGABRT exits with failure.Tiger Wang2014-01-271-0/+1
|
* Fixed client packet parsing.madmaxoft2014-01-261-3/+23
| | | | | When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541. Also modified comm logging, now each direction can be turned on separately.
* Added SIGABRT to catchers listTiger Wang2014-01-261-1/+6
|
* Comm logging is available in both Debug and Release modes.madmaxoft2014-01-251-4/+0
|
* Fixed *nix compilation for previous commit.madmaxoft2014-01-241-2/+2
|
* Added per-connection comm logging in debug mode.madmaxoft2014-01-241-1/+24
| | | | It is meant for debugging only, so it is compiled only into debug mode. It is activated by starting the server with "/logcomm" parameter.
* Fixed SIGABRT_COMPAT on other architectures.madmaxoft2014-01-171-0/+2
|
* Changed newline character because of issuesTiger Wang2014-01-161-1/+10
|
* Graceful shutdown on SIGTERMTiger Wang2014-01-071-0/+5
|
* Fixed comments in main.cpp and Player.cppTiger Wang2013-12-241-1/+1
|
* Added some comments in main.cppTiger Wang2013-12-231-1/+1
|
* Added many event catchersTiger Wang2013-12-221-11/+53
| | | | | | * Window close * CTRL-C * etc.
* Moved source to srcAlexander Harkness2013-11-241-0/+197