Skip to content

Commit

Permalink
Update for 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanquitas committed Feb 5, 2017
1 parent c4ba18c commit 52fdb66
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LIBRARIES := citro3d ctru png z m

VERSION_MAJOR := 2
VERSION_MINOR := 4
VERSION_MICRO := 0
VERSION_MICRO := 1



Expand All @@ -44,7 +44,8 @@ BUILD_FLAGS_CC := -g -Wall -Wno-strict-aliasing -O3 -mword-relocations \
-fomit-frame-pointer -ffast-math $(ARCH) $(INCLUDE) -DARM11 -D_3DS $(BUILD_FLAGS) \
-DFONZD_BANNER=${FONZD} -DPABLOMK7_BANNER=${PABLOMK7} \
-DAPP_VERSION_MAJOR=${VERSION_MAJOR} \
-DAPP_VERSION_MINOR=${VERSION_MINOR}
-DAPP_VERSION_MINOR=${VERSION_MINOR} \
-DAPP_VERSION_REVISION=${VERSION_MICRO}
BUILD_FLAGS_CXX := $(COMMON_FLAGS) -std=gnu++11
RUN_FLAGS :=

Expand Down
Binary file modified romfs/ntr_3_4.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion source/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(((major)<<24)|((minor)<<16)|((revision)<<8))
#endif

#define CURRENT_CONFIG_VERSION SYSTEM_VERSION(1, 0, 0)
#define CURRENT_CONFIG_VERSION SYSTEM_VERSION(1, 0, 1)

#define SECONDS_IN_WEEK 604800
#define SECONDS_IN_DAY 86400
Expand Down
5 changes: 4 additions & 1 deletion source/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ void initUI(void)
appTop = newAppInfoObject(topInfoSprite, 14, 55.0f, 30.0f);
appInfoSetTextBoundaries(appTop, 345.0f, 210.0f);

sprintf(appVersion, "Version: %d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR);
if (!APP_VERSION_REVISION)
sprintf(appVersion, "Version: %d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR);
else
sprintf(appVersion, "Version: %d.%d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR, APP_VERSION_REVISION);
updateUI();
}

Expand Down
7 changes: 5 additions & 2 deletions source/updater.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ static Result parseResponseData(const char *jsonText, u32 size, bool *hasUpdate)
changelog = val->u.string.ptr;
}
if (name != NULL && assets != NULL)
{
snprintf(versionString, sizeof(versionString), "%d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR);
{
if (!APP_VERSION_REVISION)
snprintf(versionString, sizeof(versionString), "%d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR);
else
snprintf(versionString, sizeof(versionString), "%d.%d.%d", APP_VERSION_MAJOR, APP_VERSION_MINOR, APP_VERSION_REVISION);
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 52fdb66

Please sign in to comment.