Add platform name to --version information
authorCraig Robbins <kde.psych@gmail.com>
Wed, 11 May 2016 07:15:41 +0000 (17:15 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Wed, 11 May 2016 07:15:41 +0000 (17:15 +1000)
src/main.cpp

index 72daaef012a0fe1360e7e51384d7fce41823e703..7f11c6b464fdb3cf903df4c45bf7fca18846042e 100644 (file)
@@ -344,7 +344,8 @@ static void print_allowed_options(const OptionList &allowed_options)
 
 static void print_version()
 {
-       std::cout << PROJECT_NAME_C " " << g_version_hash << std::endl;
+       std::cout << PROJECT_NAME_C " " << g_version_hash
+                 << "(" << porting::getPlatformName() << ") " << std::endl;
 #ifndef SERVER
        std::cout << "Using Irrlicht " << IRRLICHT_SDK_VERSION << std::endl;
 #endif