Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit effd7f7

Browse files
committed
fixed versioncheck inside of the updater
1 parent b035a46 commit effd7f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ static const std::string versionCheckUrl = mainUrl + "version.txt";
3333
static const std::string mainDownloadUrlDev = mainUrl + "devUpdates/";
3434
static const std::string VersionCheckUrlDev = mainUrl + "devVersion.txt";
3535

36-
static const u32 version=0x00060469;
36+
static const u32 version=0x00060471;
3737

3838
std::string generateVersionString(u32 version);

source/updater.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Updater::Updater(MenuManager* manager, bool* exitLoop)
3737
Result Updater::checkForUpdate()
3838
{
3939
Result ret = checkVersion();
40-
if (this->onlineVersion > 0)
40+
if (this->onlineVersion > version)
4141
{
4242
if (this->updaterSettings->getValue(SETTINGS_UPDATE_NOTIFICATION))
4343
this->createUpdateNotification();
@@ -57,7 +57,7 @@ Result Updater::updateApplication()
5757
Result res = 0;
5858
if (this->onlineVersion == 0)
5959
this->checkVersion();
60-
if (this->onlineVersion>0)
60+
if (this->onlineVersion>version)
6161
{
6262
res = this->downloadUpdate();
6363
if (res == 0)

0 commit comments

Comments
 (0)