feat: add version to update menu

This commit is contained in:
2021-11-14 15:27:09 +01:00
parent 11a517a41a
commit 6a79f2b490
3 changed files with 33 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ private:
bool m_FileWrited;
bool m_CancelDownload;
DataBuffer m_FileBuffer;
std::string m_LastVersion;
public:
Updater() : m_Progress(0), m_DownloadComplete(false), m_FileWrited(false), m_CancelDownload(false) {}
@@ -32,6 +33,11 @@ public:
static std::string getLocalFilePath();
static void removeOldFile();
static std::string getCurrentVersion(){ return TD_VERSION; }
std::string getLastVersion() { return m_LastVersion; }
bool canUpdate();
private:
std::string getDownloadFileURL();
};