mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-25 03:56:54 +01:00
Add SAVE_TYPE_DD64_CART_PORT
and Code style improvements
This commit is contained in:
parent
08f1cc6870
commit
d9cfeaac2d
@ -135,6 +135,8 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac
|
||||
case SAVE_TYPE_FLASHRAM:
|
||||
rom_size -= KiB(128);
|
||||
break;
|
||||
case SAVE_TYPE_DD64_CART_PORT:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -154,10 +156,6 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac
|
||||
progress(f_tell(&fil) / (float)(f_size(&fil)));
|
||||
}
|
||||
}
|
||||
/*if (f_tell(&fil) != sdram_size) {
|
||||
f_close(&fil);
|
||||
return FLASHCART_ERR_LOAD;
|
||||
}*/
|
||||
|
||||
if (f_close(&fil) != FR_OK) {
|
||||
return FLASHCART_ERR_LOAD;
|
||||
@ -250,6 +248,8 @@ static flashcart_err_t ed64_load_save (char *save_path) {
|
||||
current_state.is_fram_save_type = true;
|
||||
ed64_state_save(¤t_state);
|
||||
break;
|
||||
case SAVE_TYPE_DD64_CART_PORT:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ typedef enum {
|
||||
SAVE_TYPE_EEPROM_16K = 4,
|
||||
SAVE_TYPE_FLASHRAM = 5,
|
||||
SAVE_TYPE_CPAK = 8,
|
||||
SAVE_TYPE_DD64 = 16,
|
||||
SAVE_TYPE_DD64_CART_PORT = 16,
|
||||
} ed64_save_type_t;
|
||||
|
||||
#define ROM_ADDRESS (0xB0000000)
|
||||
|
Loading…
Reference in New Issue
Block a user