1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

bis: Fix BIS write for emuMMC

A last minute cleanup changed the function for writing the changed BIS sectors in emuMMC to a read.

Restore it to a sd card write.
This commit is contained in:
CTCaer 2021-02-08 04:00:11 +02:00
parent 38ce46a158
commit fff750e609

View file

@ -167,7 +167,7 @@ static int nx_emmc_bis_write_block(u32 sector, u32 count, void *buff, bool flush
if (!emu_offset) if (!emu_offset)
res = nx_emmc_part_write(&emmc_storage, system_part, sector, count, bis_cache->dma_buff); res = nx_emmc_part_write(&emmc_storage, system_part, sector, count, bis_cache->dma_buff);
else else
res = sdmmc_storage_read(&sd_storage, emu_offset + system_part->lba_start + sector, count, bis_cache->dma_buff); res = sdmmc_storage_write(&sd_storage, emu_offset + system_part->lba_start + sector, count, bis_cache->dma_buff);
if (!res) if (!res)
return 1; // R/W error. return 1; // R/W error.