From 640c65f18d9c5d7c128c9fce7c66835679f4c995 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 5 Jan 2017 03:19:06 +0100 Subject: [PATCH] Fix a typo in AGBSAVE handling --- source/common/common.h | 2 +- source/nand/agbsave.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/common.h b/source/common/common.h index c59c5df..6e9c03c 100644 --- a/source/common/common.h +++ b/source/common/common.h @@ -38,7 +38,7 @@ (((v) % (a)) ? ((v) + (a) - ((v) % (a))) : (v)) // GodMode9 version -#define VERSION "0.9.3" +#define VERSION "0.9.4" // input / output paths #define INPUT_PATHS "0:", "0:/files9", "1:/rw/files9" diff --git a/source/nand/agbsave.c b/source/nand/agbsave.c index 5d7e563..bd32c4a 100644 --- a/source/nand/agbsave.c +++ b/source/nand/agbsave.c @@ -44,5 +44,5 @@ u32 FixAgbSaveCmac(u32 nand_dst) { // https://www.3dbrew.org/wiki/CONFIG_Registers#CFG_BOOTENV *(u32*) 0x10010000 = 0x7; - return (WriteNandSectors((u8*) agbsave, SECTOR_AGBSAVE, 1, 0x07, nand_dst) != 0) ? 0 : 1; + return (WriteNandSectors((u8*) agbsave, SECTOR_AGBSAVE, 1, 0x07, nand_dst) == 0) ? 0 : 1; }