Init BBFS on iQue

This commit is contained in:
Mateusz Faderewski 2024-04-26 23:03:15 +02:00
parent 3becd1ff59
commit cbe69e2659
2 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,7 @@ char *flashcart_convert_error_message (flashcart_err_t err) {
case FLASHCART_OK: return "No error";
case FLASHCART_ERR_OUTDATED: return "Outdated flashcart firmware";
case FLASHCART_ERR_SD_CARD: return "Error during SD card initialization";
case FLASHCART_ERR_BBFS: return "Error during iQue NAND initialization";
case FLASHCART_ERR_ARGS: return "Invalid argument passed to flashcart function";
case FLASHCART_ERR_LOAD: return "Error during loading data into flashcart";
case FLASHCART_ERR_INT: return "Internal flashcart error";
@ -93,6 +94,9 @@ flashcart_err_t flashcart_init (const char **storage_prefix) {
if (sys_bbplayer()) {
// TODO: Add iQue callbacks
*storage_prefix = "bbfs:/";
if (bbfs_init()) {
return FLASHCART_ERR_BBFS;
}
return FLASHCART_OK;
}

View File

@ -17,6 +17,7 @@ typedef enum {
FLASHCART_OK,
FLASHCART_ERR_OUTDATED,
FLASHCART_ERR_SD_CARD,
FLASHCART_ERR_BBFS,
FLASHCART_ERR_ARGS,
FLASHCART_ERR_LOAD,
FLASHCART_ERR_INT,