CheatMenuSA/src/Updater.h

24 lines
459 B
C
Raw Normal View History

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-14 16:54:55 -04:00
// TODO: fix memory leak
static void CheckForUpdate();
2021-03-10 23:55:23 -05:00
static void DownloadUpdate();
2021-03-14 16:54:55 -04:00
static void InstallUpdate();
static void FinishUpdate();
2021-03-10 16:10:59 -05:00
};