From 620a9e9ea1dcb1c7d13755edd9c72e51f6147f78 Mon Sep 17 00:00:00 2001 From: ariahiro64 Date: Sat, 21 Oct 2023 07:20:25 -0400 Subject: [PATCH] make sure sram128 and fram are 128kb --- src/flashcart/ed64/ed64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flashcart/ed64/ed64.c b/src/flashcart/ed64/ed64.c index 4dabae7c..25936578 100644 --- a/src/flashcart/ed64/ed64.c +++ b/src/flashcart/ed64/ed64.c @@ -240,10 +240,10 @@ static flashcart_err_t ed64_load_save (char *save_path) { case SAVE_TYPE_SRAM: ed64_ll_set_sram(cartsave_data, save_size); case SAVE_TYPE_SRAM_128K: - ed64_ll_set_sram_128(cartsave_data, save_size); + ed64_ll_set_sram_128(cartsave_data, KiB(128)); break; case SAVE_TYPE_FLASHRAM: - ed64_ll_set_fram(cartsave_data, save_size); + ed64_ll_set_fram(cartsave_data, KiB(128)); // a cold and warm boot has no way of seeing save types and most types can be determined by size // this tells the cart to use flash instead of sram 128 since they are the same size current_state.is_fram_save_type = true;