Update flashcart features

This commit is contained in:
Robin Jones 2024-10-25 15:28:52 +01:00
parent f5dd0ae336
commit b07364aa3f
4 changed files with 13 additions and 1 deletions

View File

@ -77,6 +77,7 @@ static bool d64_has_feature (flashcart_features_t feature) {
case FLASHCART_FEATURE_USB: return true; case FLASHCART_FEATURE_USB: return true;
case FLASHCART_FEATURE_AUTO_CIC: return true; case FLASHCART_FEATURE_AUTO_CIC: return true;
case FLASHCART_FEATURE_AUTO_REGION: return true; case FLASHCART_FEATURE_AUTO_REGION: return true;
case FLASHCART_FEATURE_SAVE_WRITEBACK: return true;
default: return false; default: return false;
} }
} }

View File

@ -31,6 +31,9 @@ typedef enum {
FLASHCART_FEATURE_USB, FLASHCART_FEATURE_USB,
FLASHCART_FEATURE_AUTO_CIC, FLASHCART_FEATURE_AUTO_CIC,
FLASHCART_FEATURE_AUTO_REGION, FLASHCART_FEATURE_AUTO_REGION,
FLASHCART_FEATURE_BATTERY_HEALTH,
FLASHCART_FEATURE_BIOS_UPDATE_FROM_MENU,
FLASHCART_FEATURE_SAVE_WRITEBACK
} flashcart_features_t; } flashcart_features_t;
/** @brief Flashcart save type enumeration */ /** @brief Flashcart save type enumeration */

View File

@ -256,6 +256,8 @@ static bool sc64_has_feature (flashcart_features_t feature) {
case FLASHCART_FEATURE_USB: return true; case FLASHCART_FEATURE_USB: return true;
case FLASHCART_FEATURE_AUTO_CIC: return true; case FLASHCART_FEATURE_AUTO_CIC: return true;
case FLASHCART_FEATURE_AUTO_REGION: return true; case FLASHCART_FEATURE_AUTO_REGION: return true;
case FLASHCART_FEATURE_BATTERY_HEALTH: return true;
case FLASHCART_FEATURE_SAVE_WRITEBACK: return true;
default: return false; default: return false;
} }
} }

View File

@ -61,6 +61,9 @@ static void draw (menu_t *menu, surface_t *d) {
" USB Debugging: %s.\n" " USB Debugging: %s.\n"
" CIC Detection: %s.\n" " CIC Detection: %s.\n"
" Region Detection: %s.\n" " Region Detection: %s.\n"
" Battery Health: %s.\n"
" Save Writeback: %s.\n"
" Update from menu: %s.\n"
"\n\n", "\n\n",
format_cart_type(), format_cart_type(),
"Not Available", "Not Available",
@ -68,7 +71,10 @@ static void draw (menu_t *menu, surface_t *d) {
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_RTC)), format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_RTC)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_USB)), format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_USB)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_AUTO_CIC)), format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_AUTO_CIC)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_AUTO_REGION)) format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_AUTO_REGION)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_BATTERY_HEALTH)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_SAVE_WRITEBACK)),
format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_BIOS_UPDATE_FROM_MENU))
); );
component_actions_bar_text_draw( component_actions_bar_text_draw(