added client version control

+ nlohmann/json library was included in the project.
+ VersionControl class was created and it checks if the client is up to date.
+ CLIENT_VERSION macro defined.
This commit is contained in:
Jadis0x
2024-06-02 13:27:13 +03:00
parent 3c474a398e
commit a1c4c9c830
7 changed files with 24938 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
class VersionControl {
public:
VersionControl(const char* version_tag, const wchar_t* url);
~VersionControl();
const char* GetCurrentVersionTag();
void CheckForUpdate();
bool IsUpToDate();
const char* GetLatestDownloadLink();
private:
const char* latestDownloadLink;
bool isUpToDate;
const char* current_version_tag;
const wchar_t* requestUrl;
private:
void SetIsUpToDate(bool value);
};