mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-22 18:49:20 +01:00
Update flashcart features
This commit is contained in:
parent
f5dd0ae336
commit
b07364aa3f
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 */
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user