From 4a8883a0faba4bece6061b85c95fb8028cd0757d Mon Sep 17 00:00:00 2001 From: Biscuit Boy Date: Fri, 20 Oct 2017 02:23:45 +1100 Subject: [PATCH] Add Verison and Git Hash to printBanner Added Version and Git Hash to printBanner in Zone and Lobby Server --- src/servers/Server_Lobby/ServerLobby.cpp | 4 +++- src/servers/Server_Zone/ServerZone.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/servers/Server_Lobby/ServerLobby.cpp b/src/servers/Server_Lobby/ServerLobby.cpp index 6c151da4..c803b46e 100644 --- a/src/servers/Server_Lobby/ServerLobby.cpp +++ b/src/servers/Server_Lobby/ServerLobby.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -58,7 +59,8 @@ namespace Core { g_log.info( "===========================================================" ); g_log.info( "Sapphire Server Project " ); - g_log.info( "Version: x.y.z" ); + g_log.info( "Version: " + Version::VERSION ); + g_log.info( "Git Hash: " + Version::GIT_HASH ); g_log.info( "Compiled: " __DATE__ " " __TIME__ ); g_log.info( "===========================================================" ); diff --git a/src/servers/Server_Zone/ServerZone.cpp b/src/servers/Server_Zone/ServerZone.cpp index 917a3302..07068181 100644 --- a/src/servers/Server_Zone/ServerZone.cpp +++ b/src/servers/Server_Zone/ServerZone.cpp @@ -4,6 +4,7 @@ #include "ServerZone.h" +#include #include #include #include @@ -239,7 +240,8 @@ void Core::ServerZone::printBanner() const { g_log.info("===========================================================" ); g_log.info( "Sapphire Server Project " ); - g_log.info( "Version: x.y.z" ); + g_log.info( "Version: " + Version::VERSION ); + g_log.info( "Git Hash: " + Version::GIT_HASH ); g_log.info( "Compiled: " __DATE__ " " __TIME__ ); g_log.info( "===========================================================" ); }