fix other saves

This commit is contained in:
ariahiro64 2023-10-21 03:19:49 -04:00
parent eb9fecb115
commit ea1c7dbead

View File

@ -125,7 +125,17 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac
} }
if (rom_size == MiB(64)) { if (rom_size == MiB(64)) {
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); rom_size -= KiB(128);
break;
default:
break;
}
} }
size_t sdram_size = rom_size; size_t sdram_size = rom_size;