feat: add version to update menu
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user