- added SVN revision # to --version output
This commit is contained in:
parent
f345835fc4
commit
44019a0d9b
|
@ -25,9 +25,9 @@ using namespace Shared::Platform;
|
|||
|
||||
namespace Glest { namespace Game {
|
||||
|
||||
const string mailString= "contact_game@glest.org";
|
||||
const string glestVersionString= "v3.3.7";
|
||||
const string SVN_Rev = "$Rev$";
|
||||
const string mailString = "contact_game@glest.org";
|
||||
const string glestVersionString = "v3.3.7";
|
||||
const string SVN_Rev = "$Rev$";
|
||||
|
||||
string getCrashDumpFileName(){
|
||||
return "glest" + glestVersionString + ".dmp";
|
||||
|
@ -54,6 +54,10 @@ string getPlatformNameString() {
|
|||
return platform;
|
||||
}
|
||||
|
||||
string getSVNRevisionString() {
|
||||
return SVN_Rev;
|
||||
}
|
||||
|
||||
string getCompilerNameString() {
|
||||
string version = "";
|
||||
#if defined(WIN32) && defined(_MSC_VER)
|
||||
|
@ -100,7 +104,7 @@ string getNetworkPlatformFreeVersionString() {
|
|||
return glestVersionString;
|
||||
}
|
||||
|
||||
string getAboutString1(int i){
|
||||
string getAboutString1(int i) {
|
||||
switch(i){
|
||||
case 0: return "Glest " + glestVersionString + " (" + "Shared Library " + sharedLibVersionString + ")";
|
||||
case 1: return "Built: " + string(__DATE__) + " " + SVN_Rev;
|
||||
|
|
|
@ -29,6 +29,7 @@ extern const string networkVersionString;
|
|||
|
||||
string getCrashDumpFileName();
|
||||
string getPlatformNameString();
|
||||
string getSVNRevisionString();
|
||||
string getCompilerNameString();
|
||||
string getNetworkVersionString();
|
||||
string getNetworkPlatformFreeVersionString();
|
||||
|
|
|
@ -531,9 +531,9 @@ int glestMain(int argc, char** argv){
|
|||
hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_VERSION]) == true) {
|
||||
#ifdef USE_STREFLOP
|
||||
streflop_init<streflop::Simple>();
|
||||
printf("%s, STREFLOP enabled.\n",getNetworkVersionString().c_str());
|
||||
printf("%s, SVN: [%s], [STREFLOP]\n",getNetworkVersionString().c_str(),getSVNRevisionString().c_str());
|
||||
#else
|
||||
printf("%s, STREFLOP NOT enabled.\n",getNetworkVersionString().c_str());
|
||||
printf("%s, SVN: [%s]\n",getNetworkVersionString().c_str(),getSVNRevisionString().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user