wiiu-nanddumper-payload/ios_fs/source/main.c

35 lines
729 B
C
Raw Normal View History

2016-12-12 19:31:02 +01:00
#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 redNAND!");
dump_nand_complete();
}
}
}