2015-07-18 01:01:06 +00:00
|
|
|
#ifndef VERSION_HPP
|
|
|
|
#define VERSION_HPP
|
|
|
|
|
2023-08-31 18:55:28 +00:00
|
|
|
#include <filesystem>
|
2015-07-18 01:01:06 +00:00
|
|
|
#include <string>
|
2023-08-27 18:43:12 +00:00
|
|
|
#include <string_view>
|
2015-07-18 01:01:06 +00:00
|
|
|
|
|
|
|
namespace Version
|
|
|
|
{
|
2023-08-27 18:43:12 +00:00
|
|
|
std::string_view getVersion();
|
|
|
|
std::string_view getCommitHash();
|
|
|
|
std::string_view getTagHash();
|
|
|
|
int getLuaApiRevision();
|
2023-11-16 15:24:16 +00:00
|
|
|
int getPostprocessingApiRevision();
|
2015-07-18 01:01:06 +00:00
|
|
|
|
2023-08-27 18:43:12 +00:00
|
|
|
// Prepares string that contains version and commit hash.
|
|
|
|
std::string getOpenmwVersionDescription();
|
2023-08-31 18:55:28 +00:00
|
|
|
|
|
|
|
bool checkResourcesVersion(const std::filesystem::path& resourcePath);
|
2024-02-25 12:13:28 +00:00
|
|
|
|
|
|
|
std::string_view getDocumentationUrl();
|
2015-07-18 01:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // VERSION_HPP
|