mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-12-25 01:31:51 +01:00
Improve flashcart features
This commit is contained in:
parent
f1238debb1
commit
dd3ce84a46
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user