Cleanup nand.c / nand.h

This commit is contained in:
d0k3 2016-03-17 19:40:05 +01:00
parent e1ff741009
commit 8dc8d8e67d
2 changed files with 4 additions and 18 deletions

View File

@ -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;
}

View File

@ -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);