From cfd71215747567211206885b110350ea06c8e25a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 5 May 2021 08:44:53 -0700 Subject: [PATCH] emummc: advance buffer for multi-file case --- emummc/source/emuMMC/emummc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emummc/source/emuMMC/emummc.c b/emummc/source/emuMMC/emummc.c index 6c2fd91a7..4db3a21f8 100644 --- a/emummc/source/emuMMC/emummc.c +++ b/emummc/source/emuMMC/emummc.c @@ -314,6 +314,7 @@ static uint64_t emummc_read_write_inner(void *buf, unsigned int sector, unsigned return 0; } + buf = (void *)((uintptr_t)buf + (cur_sectors << 9)); remaining -= cur_sectors; sector = 0; ++fp;