mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Cleanup nand.c / nand.h
This commit is contained in:
parent
e1ff741009
commit
8dc8d8e67d
@ -1,6 +1,4 @@
|
|||||||
#include "fs.h"
|
#include "fs.h"
|
||||||
#include "draw.h"
|
|
||||||
#include "hid.h"
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
#include "sha.h"
|
#include "sha.h"
|
||||||
@ -167,6 +165,7 @@ u8 CheckNandType(bool check_emunand)
|
|||||||
|
|
||||||
bool InitEmuNandBase(void)
|
bool InitEmuNandBase(void)
|
||||||
{
|
{
|
||||||
|
emunand_base_sector = 0x000000;
|
||||||
if (GetPartitionOffsetSector("0:") <= getMMCDevice(0)->total_size)
|
if (GetPartitionOffsetSector("0:") <= getMMCDevice(0)->total_size)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -181,16 +180,3 @@ bool InitEmuNandBase(void)
|
|||||||
emunand_base_sector = 0x000000;
|
emunand_base_sector = 0x000000;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 GetEmuNandBase(void)
|
|
||||||
{
|
|
||||||
return emunand_base_sector;
|
|
||||||
}
|
|
||||||
|
|
||||||
u32 SwitchEmuNandBase(int start_sector)
|
|
||||||
{
|
|
||||||
// switching code goes here
|
|
||||||
return emunand_base_sector;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#define NAND_TYPE_UNK 0
|
#define NAND_TYPE_UNK 0
|
||||||
#define NAND_TYPE_O3DS 1
|
#define NAND_TYPE_O3DS (1<<0)
|
||||||
#define NAND_TYPE_N3DS 2
|
#define NAND_TYPE_N3DS (1<<1)
|
||||||
#define NAND_TYPE_NO3DS 3
|
#define NAND_TYPE_NO3DS (1<<2)
|
||||||
|
|
||||||
bool InitNandCrypto(void);
|
bool InitNandCrypto(void);
|
||||||
void CryptNand(u8* buffer, u32 sector, u32 count, u32 keyslot);
|
void CryptNand(u8* buffer, u32 sector, u32 count, u32 keyslot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user