make sure sram128 and fram are 128kb

This commit is contained in:
ariahiro64 2023-10-21 07:20:25 -04:00
parent a88e1f0b7e
commit 620a9e9ea1

View File

@ -240,10 +240,10 @@ static flashcart_err_t ed64_load_save (char *save_path) {
case SAVE_TYPE_SRAM: case SAVE_TYPE_SRAM:
ed64_ll_set_sram(cartsave_data, save_size); ed64_ll_set_sram(cartsave_data, save_size);
case SAVE_TYPE_SRAM_128K: case SAVE_TYPE_SRAM_128K:
ed64_ll_set_sram_128(cartsave_data, save_size); ed64_ll_set_sram_128(cartsave_data, KiB(128));
break; break;
case SAVE_TYPE_FLASHRAM: 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 // 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 // this tells the cart to use flash instead of sram 128 since they are the same size
current_state.is_fram_save_type = true; current_state.is_fram_save_type = true;