mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2025-01-12 10:09:05 +01:00
Minor improvments
This commit is contained in:
parent
2871ff72a6
commit
4f01b3f5d5
@ -5,17 +5,20 @@ static int accessory_is_cpak[4];
|
||||
static cpak_info_t cpak_info;
|
||||
|
||||
static char *format_entries_info(entry_structure_t *entries) {
|
||||
// for (int j = 0; j < 16; j++)
|
||||
// {
|
||||
// if (entries[j].valid)
|
||||
// {
|
||||
for (int j = 0; j < 16; j++)
|
||||
{
|
||||
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);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
}
|
||||
else
|
||||
{
|
||||
// FIXME: add entry to the string array
|
||||
// sprintf(buffer + strlen(buffer), "(EMPTY)\n");
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
// return buffer;
|
||||
return " unknown.";
|
||||
}
|
||||
|
||||
@ -63,7 +66,7 @@ static void draw (menu_t *menu, surface_t *d) {
|
||||
"\n"
|
||||
"\n"
|
||||
"Controller Pak (1).\n"
|
||||
"Free space: %d blocks \n"
|
||||
"Free space: %d blocks. \n"
|
||||
"Entries: \n%s",
|
||||
cpak_info.free_space,
|
||||
format_entries_info(cpak_info.entries)
|
||||
|
Loading…
x
Reference in New Issue
Block a user