mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-22 02:29:19 +01:00
Init BBFS on iQue
This commit is contained in:
parent
3becd1ff59
commit
cbe69e2659
@ -79,6 +79,7 @@ char *flashcart_convert_error_message (flashcart_err_t err) {
|
|||||||
case FLASHCART_OK: return "No error";
|
case FLASHCART_OK: return "No error";
|
||||||
case FLASHCART_ERR_OUTDATED: return "Outdated flashcart firmware";
|
case FLASHCART_ERR_OUTDATED: return "Outdated flashcart firmware";
|
||||||
case FLASHCART_ERR_SD_CARD: return "Error during SD card initialization";
|
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_ARGS: return "Invalid argument passed to flashcart function";
|
||||||
case FLASHCART_ERR_LOAD: return "Error during loading data into flashcart";
|
case FLASHCART_ERR_LOAD: return "Error during loading data into flashcart";
|
||||||
case FLASHCART_ERR_INT: return "Internal flashcart error";
|
case FLASHCART_ERR_INT: return "Internal flashcart error";
|
||||||
@ -93,6 +94,9 @@ flashcart_err_t flashcart_init (const char **storage_prefix) {
|
|||||||
if (sys_bbplayer()) {
|
if (sys_bbplayer()) {
|
||||||
// TODO: Add iQue callbacks
|
// TODO: Add iQue callbacks
|
||||||
*storage_prefix = "bbfs:/";
|
*storage_prefix = "bbfs:/";
|
||||||
|
if (bbfs_init()) {
|
||||||
|
return FLASHCART_ERR_BBFS;
|
||||||
|
}
|
||||||
return FLASHCART_OK;
|
return FLASHCART_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ typedef enum {
|
|||||||
FLASHCART_OK,
|
FLASHCART_OK,
|
||||||
FLASHCART_ERR_OUTDATED,
|
FLASHCART_ERR_OUTDATED,
|
||||||
FLASHCART_ERR_SD_CARD,
|
FLASHCART_ERR_SD_CARD,
|
||||||
|
FLASHCART_ERR_BBFS,
|
||||||
FLASHCART_ERR_ARGS,
|
FLASHCART_ERR_ARGS,
|
||||||
FLASHCART_ERR_LOAD,
|
FLASHCART_ERR_LOAD,
|
||||||
FLASHCART_ERR_INT,
|
FLASHCART_ERR_INT,
|
||||||
|
Loading…
Reference in New Issue
Block a user