From 8dc8d8e67db3856645e13dc88a27d81430601836 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 17 Mar 2016 19:40:05 +0100 Subject: [PATCH] Cleanup nand.c / nand.h --- source/nand/nand.c | 16 +--------------- source/nand/nand.h | 6 +++--- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/source/nand/nand.c b/source/nand/nand.c index 5ac5d20..7e88a1c 100644 --- a/source/nand/nand.c +++ b/source/nand/nand.c @@ -1,6 +1,4 @@ #include "fs.h" -#include "draw.h" -#include "hid.h" #include "platform.h" #include "aes.h" #include "sha.h" @@ -167,6 +165,7 @@ u8 CheckNandType(bool check_emunand) bool InitEmuNandBase(void) { + emunand_base_sector = 0x000000; if (GetPartitionOffsetSector("0:") <= getMMCDevice(0)->total_size) return false; @@ -181,16 +180,3 @@ bool InitEmuNandBase(void) emunand_base_sector = 0x000000; return false; } - -u32 GetEmuNandBase(void) -{ - return emunand_base_sector; -} - -u32 SwitchEmuNandBase(int start_sector) -{ - // switching code goes here - return emunand_base_sector; -} - - diff --git a/source/nand/nand.h b/source/nand/nand.h index 9faad22..a9060c5 100644 --- a/source/nand/nand.h +++ b/source/nand/nand.h @@ -3,9 +3,9 @@ #include "common.h" #define NAND_TYPE_UNK 0 -#define NAND_TYPE_O3DS 1 -#define NAND_TYPE_N3DS 2 -#define NAND_TYPE_NO3DS 3 +#define NAND_TYPE_O3DS (1<<0) +#define NAND_TYPE_N3DS (1<<1) +#define NAND_TYPE_NO3DS (1<<2) bool InitNandCrypto(void); void CryptNand(u8* buffer, u32 sector, u32 count, u32 keyslot);