mirror of
https://github.com/wiiu-env/wiiu-nanddumper-payload.git
synced 2024-11-25 12:46:55 +01:00
35 lines
727 B
C
35 lines
727 B
C
#include "text.h"
|
|
#include "sdio.h"
|
|
#include "dumper.h"
|
|
#include "imports.h"
|
|
|
|
#define INITIALIZING_FLA 0x07
|
|
#define INITIALIZING_MMC 0x0D
|
|
|
|
|
|
int getPhysicalDeviceHandle(u32 device);
|
|
|
|
void createDevThread_entry(int initialization_type)
|
|
{
|
|
if(initialization_type == INITIALIZING_MMC)
|
|
{
|
|
sdcard_init();
|
|
}
|
|
|
|
//if(initialization_type == INITIALIZING_FLA)
|
|
//{
|
|
//dump_nand_complete();
|
|
//}
|
|
|
|
if(initialization_type == 0x01) // unknown but after SLC init no read/write done at this point yet
|
|
{
|
|
//if(check_nand_dump() == 0)
|
|
//{
|
|
clearScreen(0x000000FF);
|
|
_printf(20, 20, "welcome to NAND dumper!");
|
|
|
|
dump_nand_complete();
|
|
//}
|
|
}
|
|
}
|