Add SAVE_TYPE_DD64_CART_PORT

and Code style improvements
This commit is contained in:
Robin Jones 2023-10-23 22:48:22 +01:00
parent 08f1cc6870
commit d9cfeaac2d
2 changed files with 32 additions and 32 deletions

View File

@ -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(&current_state);
break;
case SAVE_TYPE_DD64_CART_PORT:
break;
default:
break;
}

View File

@ -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)