Fix loading.

This commit is contained in:
Robin Jones 2023-10-10 22:16:42 +01:00
parent 23b371acb1
commit 7de97a4da6
2 changed files with 3 additions and 3 deletions

View File

@ -53,13 +53,12 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac
size_t rom_size = f_size(&fil);
// FIXME: if the cart is not V3 or X5 or X7, we need to - 128KiB
if (rom_size > MiB(64) - KiB(128)) {
// FIXME: if the cart is not V3 or X5 or X7, we need probably need to - 128KiB
if (rom_size > MiB(64)) {
f_close(&fil);
return FLASHCART_ERR_LOAD;
}
size_t sdram_size = rom_size;
size_t chunk_size = MiB(1);

View File

@ -98,6 +98,7 @@ flashcart_err_t flashcart_init (void) {
case CART_EDX: // Series X EverDrive-64
case CART_ED: // Original EverDrive-64
flashcart = ed64_get_flashcart();
break;
case CART_SC: // SummerCart64