fix: Update nightly update detection logic to work with release changes

This commit is contained in:
WerWolv
2025-08-09 12:10:25 +02:00
parent 14ee688629
commit fd2d50508b
4 changed files with 29 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include <hex/helpers/utils.hpp>
#include <hex/helpers/fs.hpp>
#include <chrono>
#include <functional>
#include <optional>
#include <span>
@@ -654,6 +655,12 @@ EXPORT_MODULE namespace hex {
*/
std::string getCommitBranch();
/**
* @brief Gets the time ImHex was built
* @return The time ImHex was built
*/
std::optional<std::chrono::system_clock::time_point> getBuildTime();
/**
* @brief Checks if ImHex was built in debug mode
* @return True if ImHex was built in debug mode, false otherwise