From 544df957c653a47a1cdad67242bb4182439d3b20 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 14 Nov 2008 19:20:37 +0300 Subject: [PATCH] [6823] Restore colored console output. --- src/mangosd/Main.cpp | 12 ++++++------ src/realmd/Main.cpp | 6 +++--- src/shared/revision_nr.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mangosd/Main.cpp b/src/mangosd/Main.cpp index e116e7a..939afe0 100644 --- a/src/mangosd/Main.cpp +++ b/src/mangosd/Main.cpp @@ -135,6 +135,12 @@ extern int main(int argc, char **argv) ++c; } + if (!sConfig.SetSource(cfg_file)) + { + sLog.outError("Could not find configuration file %s.", cfg_file); + return 1; + } + sLog.outString( "%s [world-daemon]", _FULLVERSION(REVISION_DATE,REVISION_TIME,REVISION_NR,REVISION_ID) ); sLog.outString( " to stop.\n\n" ); @@ -150,12 +156,6 @@ extern int main(int argc, char **argv) sLog.outTitle( " MM MMM http://getmangos.com"); sLog.outTitle( " MMMMMM\n\n"); - if (!sConfig.SetSource(cfg_file)) - { - sLog.outError("Could not find configuration file %s.", cfg_file); - return 1; - } - sLog.outString("Using configuration file %s.", cfg_file); ///- and run the 'Master' diff --git a/src/realmd/Main.cpp b/src/realmd/Main.cpp index 95efbca..930fd00 100644 --- a/src/realmd/Main.cpp +++ b/src/realmd/Main.cpp @@ -137,14 +137,14 @@ extern int main(int argc, char **argv) ++c; } - sLog.outString( "%s [realm-daemon]", _FULLVERSION(REVISION_DATE,REVISION_TIME,REVISION_NR,REVISION_ID) ); - sLog.outString( " to stop.\n" ); - if (!sConfig.SetSource(cfg_file)) { sLog.outError("Could not find configuration file %s.", cfg_file); return 1; } + + sLog.outString( "%s [realm-daemon]", _FULLVERSION(REVISION_DATE,REVISION_TIME,REVISION_NR,REVISION_ID) ); + sLog.outString( " to stop.\n" ); sLog.outString("Using configuration file %s.", cfg_file); ///- Check the version of the configuration file diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4b4e88e..a6feab5 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "6822" + #define REVISION_NR "6823" #endif // __REVISION_NR_H__ -- 2.11.4.GIT