From fff750e6093795e59ab61b6407102b747394d676 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 8 Feb 2021 04:00:11 +0200 Subject: [PATCH] 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. --- nyx/nyx_gui/storage/nx_emmc_bis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/nyx_gui/storage/nx_emmc_bis.c b/nyx/nyx_gui/storage/nx_emmc_bis.c index b7134f6..5e9b2ea 100644 --- a/nyx/nyx_gui/storage/nx_emmc_bis.c +++ b/nyx/nyx_gui/storage/nx_emmc_bis.c @@ -167,7 +167,7 @@ static int nx_emmc_bis_write_block(u32 sector, u32 count, void *buff, bool flush if (!emu_offset) res = nx_emmc_part_write(&emmc_storage, system_part, sector, count, bis_cache->dma_buff); 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) return 1; // R/W error.