feat: Added release notes and commits to about page

This commit is contained in:
WerWolv
2023-11-05 19:57:29 +01:00
parent 0388bbdc6d
commit 4e4cdcdf61
5 changed files with 284 additions and 51 deletions

View File

@@ -608,9 +608,14 @@ namespace hex {
#endif
}
std::string getImHexVersion() {
std::string getImHexVersion(bool withBuildType) {
#if defined IMHEX_VERSION
return IMHEX_VERSION;
if (withBuildType)
return IMHEX_VERSION;
else {
auto version = std::string(IMHEX_VERSION);
return version.substr(0, version.find('-'));
}
#else
return "Unknown";
#endif