forked from mirror/openmw-tes3mp
[General] Print client version on startup
This commit is contained in:
parent
3d38da0e85
commit
182f8c1f06
2 changed files with 24 additions and 3 deletions
|
@ -49,9 +49,11 @@ extern int is_debugger_attached(void);
|
|||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Include the header of the logger added for multiplayer
|
||||
Include additional headers for multiplayer purposes
|
||||
*/
|
||||
#include <components/openmw-mp/Log.hpp>
|
||||
#include <components/openmw-mp/Utils.hpp>
|
||||
#include <components/openmw-mp/Version.hpp>
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
@ -207,7 +209,26 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|||
cfgMgr.readConfiguration(variables, desc);
|
||||
|
||||
Version::Version v = Version::getOpenmwVersion(variables["resources"].as<Files::EscapeHashString>().toStdString());
|
||||
std::cout << v.describe() << std::endl;
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Print the multiplayer version first
|
||||
*/
|
||||
Utils::printVersion("TES3MP client", TES3MP_VERSION, v.mCommitHash, TES3MP_PROTO_VERSION);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
/*
|
||||
Start of tes3mp change (minor)
|
||||
|
||||
Because there is no need to print the commit hash again, only print OpenMW's version
|
||||
*/
|
||||
std::cout << "OpenMW version " << v.mVersion << std::endl;
|
||||
/*
|
||||
End of tes3mp change (minor)
|
||||
*/
|
||||
|
||||
engine.setGrabMouse(!variables["no-grab"].as<bool>());
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ void Utils::printVersion(std::string appName, std::string version, std::string c
|
|||
cout << "Unknown OS";
|
||||
#endif
|
||||
cout << " ";
|
||||
#ifdef __x86_64__
|
||||
#if defined(__x86_64__) || defined(_M_X64)
|
||||
cout << "64-bit";
|
||||
#elif defined(__i386__) || defined(_M_I86)
|
||||
cout << "32-bit";
|
||||
|
|
Loading…
Reference in a new issue