21 lines
574 B
C
Raw Normal View History

#pragma once
#include "common.h"
#define NAND_TYPE_UNK 0
2016-03-17 19:40:05 +01:00
#define NAND_TYPE_O3DS (1<<0)
#define NAND_TYPE_N3DS (1<<1)
#define NAND_TYPE_NO3DS (1<<2)
bool InitNandCrypto(void);
bool CheckSlot0x05Crypto(void);
void CryptNand(u8* buffer, u32 sector, u32 count, u32 keyslot);
int ReadNandSectors(u8* buffer, u32 sector, u32 count, u32 keyslot, bool read_emunand);
int WriteNandSectors(const u8* buffer, u32 sector, u32 count, u32 keyslot, bool write_emunand);
u64 GetNandSizeSectors(bool size_emunand);
u8 CheckNandType(bool check_emunand);
2016-03-16 18:46:05 +01:00
bool InitEmuNandBase(void);