mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2025-01-12 18:09:16 +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 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)
|
||||||
// {
|
{
|
||||||
// sprintf(buffer + strlen(buffer), "%s - %d blocks\n", entries[j].name, entries[j].blocks);
|
// FIXME: add entry to the string array
|
||||||
// }
|
// sprintf(buffer + strlen(buffer), "%s - %d blocks\n", entries[j].name, entries[j].blocks);
|
||||||
// else
|
}
|
||||||
// {
|
else
|
||||||
// sprintf(buffer + strlen(buffer), "(EMPTY)\n");
|
{
|
||||||
// }
|
// FIXME: add entry to the string array
|
||||||
// }
|
// 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)
|
||||||
@ -75,7 +78,7 @@ static void draw (menu_t *menu, surface_t *d) {
|
|||||||
"\n"
|
"\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Controller Pak (1).\n"
|
"Controller Pak (1).\n"
|
||||||
"Not inserted.\n"
|
" Not inserted.\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user