mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
Startup banner extracted to own function
This commit is contained in:
parent
9a9030d206
commit
a4bb966a8c
2 changed files with 12 additions and 5 deletions
|
@ -188,11 +188,7 @@ void Core::ServerZone::run( int32_t argc, char* argv[] )
|
||||||
g_log.setLogPath( "log\\SapphireZone_" );
|
g_log.setLogPath( "log\\SapphireZone_" );
|
||||||
g_log.init();
|
g_log.init();
|
||||||
|
|
||||||
g_log.info( "===========================================================" );
|
printBanner();
|
||||||
g_log.info( "Sapphire Server Project " );
|
|
||||||
g_log.info( "Version: x.y.z" );
|
|
||||||
g_log.info( "Compiled: " __DATE__ " " __TIME__ );
|
|
||||||
g_log.info( "===========================================================" );
|
|
||||||
|
|
||||||
if( !loadSettings( argc, argv ) )
|
if( !loadSettings( argc, argv ) )
|
||||||
{
|
{
|
||||||
|
@ -239,6 +235,15 @@ void Core::ServerZone::run( int32_t argc, char* argv[] )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Core::ServerZone::printBanner() const
|
||||||
|
{
|
||||||
|
g_log.info("===========================================================" );
|
||||||
|
g_log.info( "Sapphire Server Project " );
|
||||||
|
g_log.info( "Version: x.y.z" );
|
||||||
|
g_log.info( "Compiled: " __DATE__ " " __TIME__ );
|
||||||
|
g_log.info( "===========================================================" );
|
||||||
|
}
|
||||||
|
|
||||||
void Core::ServerZone::mainLoop()
|
void Core::ServerZone::mainLoop()
|
||||||
{
|
{
|
||||||
while( isRunning() )
|
while( isRunning() )
|
||||||
|
|
|
@ -44,6 +44,8 @@ namespace Core {
|
||||||
|
|
||||||
bool isRunning() const;
|
bool isRunning() const;
|
||||||
|
|
||||||
|
void printBanner() const;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue