- 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:
dimok789 2016-12-14 20:48:35 +01:00
parent b65b6c86cc
commit fe9c3f8434
4 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 KiB

After

Width:  |  Height:  |  Size: 882 KiB

View File

@ -193,11 +193,12 @@ int FSA_SDReadRawSectors(void *buffer, u32 sector, u32 num_sectors)
res = FSA_RawRead(fsa, buf, 0x200, num_sectors, sector, fd);
kernel_memcpy(buffer, buf, num_sectors << 9);
svcFree(0xCAFF, buf);
FSA_RawClose(fsa, fd);
FSA_Close(fsa);
kernel_memcpy(buffer, buf, num_sectors << 9);
return res;
}

View File

@ -37,7 +37,9 @@ void redirection_setup(void)
sdio_nand_signature_sector_t *infoSector = (sdio_nand_signature_sector_t*)0x00141000;
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)
{

View File

@ -137,7 +137,7 @@ int write_config(cfw_config_t * config)
if(!pFile)
return -1;
fprintf(pFile, "[RIOSUHAX]\n");
fprintf(pFile, "[MOCHA]\n");
fprintf(pFile, "viewMode=%i\n", config->viewMode);
fprintf(pFile, "directLaunch=%i\n", config->directLaunch);
fprintf(pFile, "launchImage=%i\n", config->launchImage);