51891b766c
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.
4 lines
64 B
Batchfile
4 lines
64 B
Batchfile
@echo off
|
|
set SERVICENAME="MCServer"
|
|
|
|
sc delete %SERVICENAME% |