From ea1c7dbead79f569eaae38ea17218b609716ff32 Mon Sep 17 00:00:00 2001 From: ariahiro64 Date: Sat, 21 Oct 2023 03:19:49 -0400 Subject: [PATCH] fix other saves --- src/flashcart/ed64/ed64.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/flashcart/ed64/ed64.c b/src/flashcart/ed64/ed64.c index 94006a02..7338786b 100644 --- a/src/flashcart/ed64/ed64.c +++ b/src/flashcart/ed64/ed64.c @@ -125,7 +125,17 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac } if (rom_size == MiB(64)) { - rom_size -= KiB(128); + ed64_save_type_t type = ed64_ll_get_save_type(); + switch (type) { + case SAVE_TYPE_SRAM: + rom_size -= KiB(32); + case SAVE_TYPE_SRAM_128K: + case SAVE_TYPE_FLASHRAM: + rom_size -= KiB(128); + break; + default: + break; + } } size_t sdram_size = rom_size;