1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 08:23:52 +00:00
openmw/components/version/version.hpp

28 lines
593 B
C++
Raw Normal View History

#ifndef VERSION_HPP
#define VERSION_HPP
#include <filesystem>
2022-09-22 18:26:05 +00:00
#include <string>
namespace Version
{
struct Version
{
std::string mVersion;
std::string mCommitHash;
std::string mTagHash;
std::string describe() const;
};
/// Read OpenMW version from the version file located in resourcePath.
2022-09-22 18:26:05 +00:00
Version getOpenmwVersion(const std::filesystem::path& resourcePath);
/// Helper function to getOpenmwVersion and describe() it
2022-09-22 18:26:05 +00:00
std::string getOpenmwVersionDescription(const std::filesystem::path& resourcePath);
}
#endif // VERSION_HPP