Minor improvments

This commit is contained in:
Robin Jones 2024-04-30 00:49:18 +01:00
parent 2871ff72a6
commit 4f01b3f5d5

View File

@ -5,17 +5,20 @@ static int accessory_is_cpak[4];
static cpak_info_t cpak_info; static cpak_info_t cpak_info;
static char *format_entries_info(entry_structure_t *entries) { static char *format_entries_info(entry_structure_t *entries) {
// for (int j = 0; j < 16; j++) for (int j = 0; j < 16; j++)
// { {
// if (entries[j].valid) if (entries[j].valid)
// { {
// FIXME: add entry to the string array
// sprintf(buffer + strlen(buffer), "%s - %d blocks\n", entries[j].name, entries[j].blocks); // sprintf(buffer + strlen(buffer), "%s - %d blocks\n", entries[j].name, entries[j].blocks);
// } }
// else else
// { {
// FIXME: add entry to the string array
// sprintf(buffer + strlen(buffer), "(EMPTY)\n"); // sprintf(buffer + strlen(buffer), "(EMPTY)\n");
// } }
// } }
// return buffer;
return " unknown."; return " unknown.";
} }
@ -63,7 +66,7 @@ static void draw (menu_t *menu, surface_t *d) {
"\n" "\n"
"\n" "\n"
"Controller Pak (1).\n" "Controller Pak (1).\n"
"Free space: %d blocks \n" "Free space: %d blocks. \n"
"Entries: \n%s", "Entries: \n%s",
cpak_info.free_space, cpak_info.free_space,
format_entries_info(cpak_info.entries) format_entries_info(cpak_info.entries)