From 0ce32c8d7ffb3ba8528487d0d0563f257883ce63 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 15 Jul 2016 00:25:09 +0200 Subject: [PATCH] Add TWL MBR as virtual file Update version number (v0.6.0) --- source/godmode.c | 2 +- source/nand/virtual.c | 1 + source/nand/virtual.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/godmode.c b/source/godmode.c index 48a70c7..8e2c21b 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -7,7 +7,7 @@ #include "virtual.h" #include "image.h" -#define VERSION "0.5.9" +#define VERSION "0.6.0" #define N_PANES 2 #define IMG_DRV "789I" diff --git a/source/nand/virtual.c b/source/nand/virtual.c index 07e5303..fd3408d 100644 --- a/source/nand/virtual.c +++ b/source/nand/virtual.c @@ -30,6 +30,7 @@ VirtualFile virtualFileTemplates[] = { { "nand_minsize.bin" , 0x00000000, 0x3AF00000, 0xFF, VFLAG_ON_O3DS | VFLAG_A9LH_AREA }, { "nand_minsize.bin" , 0x00000000, 0x4D800000, 0xFF, VFLAG_ON_N3DS | VFLAG_ON_NO3DS | VFLAG_A9LH_AREA }, { "nand_hdr.bin" , 0x00000000, 0x00000200, 0xFF, VFLAG_ON_NAND | VFLAG_A9LH_AREA }, + { "twlmbr.bin" , 0x000001BE, 0x00000042, 0x03, VFLAG_ON_NAND | VFLAG_A9LH_AREA }, { "itcm.mem" , 0x01FF8000, 0x00008000, 0xFF, VFLAG_ON_MEMORY }, { "arm9.mem" , 0x08000000, 0x00100000, 0xFF, VFLAG_ON_MEMORY }, { "arm9ext.mem" , 0x08010000, 0x00080000, 0xFF, VFLAG_ON_MEMORY | VFLAG_N3DS_ONLY }, diff --git a/source/nand/virtual.h b/source/nand/virtual.h index a1ac21d..1f61b96 100644 --- a/source/nand/virtual.h +++ b/source/nand/virtual.h @@ -12,7 +12,7 @@ static const char* virtualFileList[] = { // must have a match in virtualFileTemplates[] "twln.bin", "twlp.bin", "agbsave.bin", "firm0.bin", "firm1.bin", "ctrnand_fat.bin", - "ctrnand_full.bin", "nand.bin", "nand_minsize.bin", "nand_hdr.bin", "sector0x96.bin", + "ctrnand_full.bin", "nand.bin", "nand_minsize.bin", "nand_hdr.bin", "twlmbr.bin", "sector0x96.bin", "itcm.mem", "arm9.mem", "arm9ext.mem", "vram.mem", "dsp.mem", "axiwram.mem", "fcram.mem", "fcramext.mem", "dtcm.mem", "bootrom_unp.mem" };