mirror of
https://github.com/wiiu-env/wiiu-nanddumper-payload.git
synced 2024-11-22 11:29:16 +01:00
- changed name of application in config file to mocha
- don't write to sd haxxdump info sector if read was a failure - fix bug in fsa read from sd on kernel - new default launch image (thx thaikhoa)
This commit is contained in:
parent
b65b6c86cc
commit
fe9c3f8434
Binary file not shown.
Before Width: | Height: | Size: 882 KiB After Width: | Height: | Size: 882 KiB |
@ -193,11 +193,12 @@ int FSA_SDReadRawSectors(void *buffer, u32 sector, u32 num_sectors)
|
|||||||
|
|
||||||
res = FSA_RawRead(fsa, buf, 0x200, num_sectors, sector, fd);
|
res = FSA_RawRead(fsa, buf, 0x200, num_sectors, sector, fd);
|
||||||
|
|
||||||
|
kernel_memcpy(buffer, buf, num_sectors << 9);
|
||||||
|
|
||||||
svcFree(0xCAFF, buf);
|
svcFree(0xCAFF, buf);
|
||||||
FSA_RawClose(fsa, fd);
|
FSA_RawClose(fsa, fd);
|
||||||
FSA_Close(fsa);
|
FSA_Close(fsa);
|
||||||
|
|
||||||
kernel_memcpy(buffer, buf, num_sectors << 9);
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,9 @@ void redirection_setup(void)
|
|||||||
sdio_nand_signature_sector_t *infoSector = (sdio_nand_signature_sector_t*)0x00141000;
|
sdio_nand_signature_sector_t *infoSector = (sdio_nand_signature_sector_t*)0x00141000;
|
||||||
kernel_memset(infoSector, 0x00, 0x200);
|
kernel_memset(infoSector, 0x00, 0x200);
|
||||||
|
|
||||||
FSA_SDReadRawSectors(infoSector, NAND_DUMP_SIGNATURE_SECTOR, 1);
|
int result = FSA_SDReadRawSectors(infoSector, NAND_DUMP_SIGNATURE_SECTOR, 1);
|
||||||
|
if(result < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if(infoSector->signature == NAND_DUMP_SIGNATURE)
|
if(infoSector->signature == NAND_DUMP_SIGNATURE)
|
||||||
{
|
{
|
||||||
|
@ -137,7 +137,7 @@ int write_config(cfw_config_t * config)
|
|||||||
if(!pFile)
|
if(!pFile)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
fprintf(pFile, "[RIOSUHAX]\n");
|
fprintf(pFile, "[MOCHA]\n");
|
||||||
fprintf(pFile, "viewMode=%i\n", config->viewMode);
|
fprintf(pFile, "viewMode=%i\n", config->viewMode);
|
||||||
fprintf(pFile, "directLaunch=%i\n", config->directLaunch);
|
fprintf(pFile, "directLaunch=%i\n", config->directLaunch);
|
||||||
fprintf(pFile, "launchImage=%i\n", config->launchImage);
|
fprintf(pFile, "launchImage=%i\n", config->launchImage);
|
||||||
|
Loading…
Reference in New Issue
Block a user