Skip to content

Commit

Permalink
- changed name of application in config file to mocha
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
dimok789 committed Dec 14, 2016
1 parent b65b6c8 commit fe9c3f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file modified data/launch_image.tga
Binary file not shown.
3 changes: 2 additions & 1 deletion ios_kernel/source/fsa.c
Expand Up @@ -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;
}

Expand Down
4 changes: 3 additions & 1 deletion ios_kernel/source/redirection_setup.c
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/cfw_config.c
Expand Up @@ -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);
Expand Down

0 comments on commit fe9c3f8

Please sign in to comment.