You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/version/version.hpp

28 lines
593 B
C++

#ifndef VERSION_HPP
#define VERSION_HPP
#include <filesystem>
#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.
Version getOpenmwVersion(const std::filesystem::path& resourcePath);
/// Helper function to getOpenmwVersion and describe() it
std::string getOpenmwVersionDescription(const std::filesystem::path& resourcePath);
}
#endif // VERSION_HPP