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

Commit

Permalink
fixed versioncheck inside of the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartie95 committed Jan 22, 2016
1 parent b035a46 commit effd7f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ static const std::string versionCheckUrl = mainUrl + "version.txt";
static const std::string mainDownloadUrlDev = mainUrl + "devUpdates/";
static const std::string VersionCheckUrlDev = mainUrl + "devVersion.txt";

static const u32 version=0x00060469;
static const u32 version=0x00060471;

std::string generateVersionString(u32 version);
4 changes: 2 additions & 2 deletions source/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Updater::Updater(MenuManager* manager, bool* exitLoop)
Result Updater::checkForUpdate()
{
Result ret = checkVersion();
if (this->onlineVersion > 0)
if (this->onlineVersion > version)
{
if (this->updaterSettings->getValue(SETTINGS_UPDATE_NOTIFICATION))
this->createUpdateNotification();
Expand All @@ -57,7 +57,7 @@ Result Updater::updateApplication()
Result res = 0;
if (this->onlineVersion == 0)
this->checkVersion();
if (this->onlineVersion>0)
if (this->onlineVersion>version)
{
res = this->downloadUpdate();
if (res == 0)
Expand Down

0 comments on commit effd7f7

Please sign in to comment.