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,16 +57,27 @@ static void draw (menu_t *menu, surface_t *d) {
// TODO: Backup from other ports, restore from SD, and/or Repair functions. // TODO: Backup from other ports, restore from SD, and/or Repair functions.
// Bonus would be to handle individual per game entries! // Bonus would be to handle individual per game entries!
component_main_text_draw( if (accessory_is_cpak[0]) {
ALIGN_LEFT, VALIGN_TOP, component_main_text_draw(
"\n" ALIGN_LEFT, VALIGN_TOP,
"\n" "\n"
"Controller Pak (1).\n" "\n"
"Free space: %d blocks" "Controller Pak (1).\n"
"Entries: \n%s", "Free space: %d blocks"
cpak_info.free_space, "Entries: \n%s",
format_entries_info(cpak_info.entries) 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]) { if (accessory_is_cpak[0]) {
component_actions_bar_text_draw( component_actions_bar_text_draw(