Skip to content

Commit

Permalink
Fix the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanquitas committed Oct 25, 2016
1 parent c7797e9 commit b3fe3c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ROMFS := $(TOPDIR)/romfs/romfsBuilt
ROMFS3DSX := $(TOPDIR)/romfs
INCLUDES := $(SOURCES) include
ICON := resources/icon.png
#BANNER := $(TOPDIR)/resources/FONZD_banner.bnr
BANNER := $(TOPDIR)/resources/PabloMK7_banner.bnr
BANNER := $(TOPDIR)/resources/FONZD_banner.bnr
#BANNER := $(TOPDIR)/resources/PabloMK7_banner.bnr
CITRA_D := "C:/Users/Nath/Desktop/citra"

#---------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions source/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#define APP_VERSION_MAJOR 2
#define APP_VERSION_MINOR 2
#define TIMER 2
//#define CIA_VERSION "BootNTRSelector-FONZD-Banner.cia"
#define CIA_VERSION "BootNTRSelector-PabloMK7-Banner.cia"
#define CIA_VERSION "BootNTRSelector-FONZD-Banner.cia"
//#define CIA_VERSION "BootNTRSelector-PabloMK7-Banner.cia"

#define check_prim(result, err) if ((result) != 0) {g_primary_error = err; \
goto error; }
Expand Down
2 changes: 1 addition & 1 deletion source/updater.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static Result parseResponseData(const char *jsonText, u32 size, bool *hasUpdate)
if (name != NULL && assets != NULL)
{
snprintf(versionString, sizeof(versionString), "%d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR);
if (strncmp(versionString, name->u.string.ptr, name->u.string.length) > 0)
if (strncmp(name->u.string.ptr, versionString, name->u.string.length) > 0)
{
for (i = 0; i < assets->u.array.length; i++)
{
Expand Down

0 comments on commit b3fe3c5

Please sign in to comment.