bug fixes

This commit is contained in:
Grinch_ 2021-09-09 09:29:05 +06:00
parent 3cdd372a0c
commit 3c83896664
2 changed files with 25456 additions and 1 deletions

25447
Depend/json.hpp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,10 +15,18 @@ void Updater::CheckForUpdate()
SetHelpMessage("Failed to check for updates", false, false, false);
return;
}
CJson verinfo = CJson("versioninfo");
// fetch the version number
m_LatestVersion = verinfo.m_Data.items().begin().value()["name"].get<std::string>();
if (verinfo.m_Data.empty())
{
m_LatestVersion = MENU_VERSION_NUMBER;
}
else
{
m_LatestVersion = verinfo.m_Data.items().begin().value()["name"].get<std::string>();
}
if (m_LatestVersion > MENU_VERSION_NUMBER)
{