13 lines
407 B
C
13 lines
407 B
C
|
#pragma once
|
||
|
#include "common.h"
|
||
|
|
||
|
void Cart_Init();
|
||
|
int Cart_IsInserted();
|
||
|
void Cart_ReadSectorSD(u8* aBuffer, u32 aSector);
|
||
|
u32 SendReadCommand(u32 adr, u32 length, u32 blocks, void * buffer);
|
||
|
u32 GetHeader(void* buffer);
|
||
|
u32 CTR_SendCommand(u32 command[4], u32 pageSize, u32 blocks, u32 latency, void* buffer);
|
||
|
int Cart_Nin_Init();
|
||
|
u32 Cart_GetID();
|
||
|
void Cart_Secure_Init(u32* buf, u32* out);
|