mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-03-23 11:41:33 +00:00
21 lines
409 B
C
21 lines
409 B
C
#pragma once
|
|
|
|
// 6 hour long timeout between checks.
|
|
static constexpr double g_timeBetweenUpdateChecksInSeconds = 6 * 60 * 60;
|
|
|
|
struct UpdateChecker
|
|
{
|
|
enum class Result
|
|
{
|
|
NotStarted,
|
|
InProgress,
|
|
AlreadyUpToDate,
|
|
UpdateAvailable,
|
|
Failed
|
|
};
|
|
|
|
static void initialize();
|
|
static bool start();
|
|
static Result check();
|
|
static void visitWebsite();
|
|
};
|