summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
committerMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
commit11f5ee27abd47204c6f973cec43e397732192545 (patch)
tree6af0b9ac70329a7e83ff5d68f548a6081c32b633 /src/Root.h
parentQtBiomeVisualiser: Fixed compilation and INI loading. (diff)
parentWorking as a Windows service. Starts and stops correctly. (diff)
downloadcuberite-11f5ee27abd47204c6f973cec43e397732192545.tar
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.gz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.bz2
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.lz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.xz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.zst
cuberite-11f5ee27abd47204c6f973cec43e397732192545.zip
Diffstat (limited to 'src/Root.h')
-rw-r--r--src/Root.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Root.h b/src/Root.h
index fdaf444bd..d552466dc 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -46,6 +46,7 @@ public:
// tolua_end
static bool m_TerminateEventRaised;
+ static bool m_RunAsService;
cRoot(void);
@@ -53,6 +54,9 @@ public:
void Start(void);
+ // Added so the service handler can request a stop
+ void SetStopping(bool a_Stopping);
+
// tolua_begin
cServer * GetServer(void) { return m_Server; }
cWorld * GetDefaultWorld(void);