Improve menu for when CPak is not inserted.

This commit is contained in:
Robin Jones 2024-04-29 22:23:04 +01:00
parent c101dc2376
commit d038effad8

View File

@ -57,6 +57,7 @@ static void draw (menu_t *menu, surface_t *d) {
// TODO: Backup from other ports, restore from SD, and/or Repair functions.
// Bonus would be to handle individual per game entries!
if (accessory_is_cpak[0]) {
component_main_text_draw(
ALIGN_LEFT, VALIGN_TOP,
"\n"
@ -67,6 +68,16 @@ static void draw (menu_t *menu, surface_t *d) {
cpak_info.free_space,
format_entries_info(cpak_info.entries)
);
}
else {
component_main_text_draw(
ALIGN_LEFT, VALIGN_TOP,
"\n"
"\n"
"Controller Pak (1).\n"
"Not inserted.\n"
);
}
if (accessory_is_cpak[0]) {
component_actions_bar_text_draw(