diff --git a/src/mangosd/Main.cpp b/src/mangosd/Main.cpp index e116e7afa..939afe0ca 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 95efbcab4..930fd00a7 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 4b4e88e1f..a6feab50f 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__