mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 18:39:55 +00:00
Merge remote-tracking branch 'miroslavr/master'
This commit is contained in:
commit
4791098e11
1 changed files with 8 additions and 0 deletions
|
@ -190,6 +190,14 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|||
if (variables.count ("version"))
|
||||
{
|
||||
std::cout << "OpenMW version " << OPENMW_VERSION << std::endl;
|
||||
|
||||
std::string rev = OPENMW_VERSION_COMMITHASH;
|
||||
std::string tag = OPENMW_VERSION_TAGHASH;
|
||||
if (!rev.empty() && !tag.empty())
|
||||
{
|
||||
rev = rev.substr(0, 10);
|
||||
std::cout << "Revision " << rev << std::endl;
|
||||
}
|
||||
run = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue