From dd3ce84a4695826267ba623ecf0b6f464b5428a1 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Fri, 25 Oct 2024 17:16:10 +0100 Subject: [PATCH] Improve flashcart features --- src/flashcart/flashcart.h | 2 +- src/flashcart/sc64/sc64.c | 2 +- src/menu/views/flashcart_info.c | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/flashcart/flashcart.h b/src/flashcart/flashcart.h index bd568968..fcbcf606 100644 --- a/src/flashcart/flashcart.h +++ b/src/flashcart/flashcart.h @@ -31,7 +31,7 @@ typedef enum { FLASHCART_FEATURE_USB, FLASHCART_FEATURE_AUTO_CIC, FLASHCART_FEATURE_AUTO_REGION, - FLASHCART_FEATURE_BATTERY_HEALTH, + FLASHCART_FEATURE_DIAGNOSTIC_DATA, FLASHCART_FEATURE_BIOS_UPDATE_FROM_MENU, FLASHCART_FEATURE_SAVE_WRITEBACK } flashcart_features_t; diff --git a/src/flashcart/sc64/sc64.c b/src/flashcart/sc64/sc64.c index c0597057..605ae419 100644 --- a/src/flashcart/sc64/sc64.c +++ b/src/flashcart/sc64/sc64.c @@ -256,7 +256,7 @@ static bool sc64_has_feature (flashcart_features_t feature) { case FLASHCART_FEATURE_USB: return true; case FLASHCART_FEATURE_AUTO_CIC: return true; case FLASHCART_FEATURE_AUTO_REGION: return true; - case FLASHCART_FEATURE_BATTERY_HEALTH: return true; + case FLASHCART_FEATURE_DIAGNOSTIC_DATA: return true; case FLASHCART_FEATURE_SAVE_WRITEBACK: return true; default: return false; } diff --git a/src/menu/views/flashcart_info.c b/src/menu/views/flashcart_info.c index bf4ddb29..635ef2ca 100644 --- a/src/menu/views/flashcart_info.c +++ b/src/menu/views/flashcart_info.c @@ -59,22 +59,23 @@ static void draw (menu_t *menu, surface_t *d) { " Virtual 64DD: %s.\n" " Real Time Clock: %s.\n" " USB Debugging: %s.\n" - " CIC Detection: %s.\n" + " Automatic CIC: %s.\n" " Region Detection: %s.\n" - " Battery Health: %s.\n" " Save Writeback: %s.\n" " Update from menu: %s.\n" "\n\n", format_cart_type(), - "Not Available", + "Not Available", // TODO get cart firmware version(s). format_boolean_type(flashcart_has_feature(FLASHCART_FEATURE_64DD)), 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_AUTO_CIC)), 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)) + + //TODO: display the battery and temperature information (if available). + //format_diagnostic_data(flashcart_has_feature(FLASHCART_FEATURE_DIAGNOSTIC_DATA)) ); component_actions_bar_text_draw(