mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-28 21:44:15 +01:00
Fix loading.
This commit is contained in:
parent
23b371acb1
commit
7de97a4da6
@ -53,13 +53,12 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac
|
|||||||
|
|
||||||
size_t rom_size = f_size(&fil);
|
size_t rom_size = f_size(&fil);
|
||||||
|
|
||||||
// FIXME: if the cart is not V3 or X5 or X7, we need to - 128KiB
|
// FIXME: if the cart is not V3 or X5 or X7, we need probably need to - 128KiB
|
||||||
if (rom_size > MiB(64) - KiB(128)) {
|
if (rom_size > MiB(64)) {
|
||||||
f_close(&fil);
|
f_close(&fil);
|
||||||
return FLASHCART_ERR_LOAD;
|
return FLASHCART_ERR_LOAD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t sdram_size = rom_size;
|
size_t sdram_size = rom_size;
|
||||||
|
|
||||||
size_t chunk_size = MiB(1);
|
size_t chunk_size = MiB(1);
|
||||||
|
@ -98,6 +98,7 @@ flashcart_err_t flashcart_init (void) {
|
|||||||
|
|
||||||
case CART_EDX: // Series X EverDrive-64
|
case CART_EDX: // Series X EverDrive-64
|
||||||
case CART_ED: // Original EverDrive-64
|
case CART_ED: // Original EverDrive-64
|
||||||
|
flashcart = ed64_get_flashcart();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CART_SC: // SummerCart64
|
case CART_SC: // SummerCart64
|
||||||
|
Loading…
Reference in New Issue
Block a user