Updater: Add/clarify error messages

This commit is contained in:
Dentomologist
2022-10-31 23:08:35 -07:00
parent 2808db7f2f
commit 7cd08fde75
5 changed files with 39 additions and 23 deletions

View File

@ -13,9 +13,15 @@
class AutoUpdateChecker
{
public:
enum class CheckType
{
Automatic,
Manual,
};
// Initiates a check for updates in the background. Calls the OnUpdateAvailable callback if an
// update is available, does "nothing" otherwise.
void CheckForUpdate(std::string_view update_track, std::string_view hash_override);
void CheckForUpdate(std::string_view update_track, std::string_view hash_override,
CheckType check_type);
static bool SystemSupportsAutoUpdates();