summaryrefslogtreecommitdiffstats
path: root/src/main.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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