2021-03-10 16:10:59 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
enum UPDATER_STATE
|
|
|
|
{
|
|
|
|
UPDATER_IDLE,
|
|
|
|
UPDATER_CHECKING,
|
|
|
|
UPDATER_DOWNLOADING,
|
|
|
|
UPDATER_DOWNLOADED,
|
|
|
|
UPDATER_INSTALLING,
|
|
|
|
UPDATER_UPDATE_FOUND
|
|
|
|
};
|
|
|
|
|
|
|
|
class Updater
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
inline static UPDATER_STATE state = UPDATER_IDLE;
|
2021-03-10 23:55:23 -05:00
|
|
|
inline static std::string latest_version = "";
|
|
|
|
|
2021-03-10 16:10:59 -05:00
|
|
|
static void CheckForUpdates();
|
2021-03-10 23:55:23 -05:00
|
|
|
static void DownloadUpdate();
|
2021-03-10 16:10:59 -05:00
|
|
|
};
|