diff options
author | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
commit | 2cf1a3be1b310feafc43781ab9178f0c1f35d352 (patch) | |
tree | 8c028b01c102bba566ebb32c8014ab19eba8f46a /src/trinityrealm/Main.cpp | |
parent | 8739ded05dbf68486551531024f1ad8ad7b389cf (diff) | |
parent | c5dfe7dac27a0441192af758dc55e6c71c83ccb4 (diff) |
*Update to Trinity 878.
--HG--
branch : trunk
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r-- | src/trinityrealm/Main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp index e74cd5144d3..3e2739ec6b5 100644 --- a/src/trinityrealm/Main.cpp +++ b/src/trinityrealm/Main.cpp @@ -31,6 +31,7 @@ #include "sockets/ListenSocket.h" #include "AuthSocket.h" #include "SystemConfig.h" +#include "revision.h" #include "Util.h" // Format is YYYYMMDDRR where RR is the change in the conf file @@ -70,6 +71,7 @@ DatabaseType LoginDatabase; ///< Accessor to the void usage(const char *prog) { sLog.outString("Usage: \n %s [<options>]\n" + " --version print version and exist\n\r" " -c config_file use config_file as configuration file\n\r" #ifdef WIN32 " Running as service functions:\n\r" @@ -100,6 +102,12 @@ extern int main(int argc, char **argv) cfg_file = argv[c]; } + if( strcmp(argv[c],"--version") == 0) + { + printf("%s\n", _FULLVERSION); + return 0; + } + #ifdef WIN32 //////////// //Services// |