mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-02-24 14:51:59 -05:00
Display free space, and human readable file format
This commit is contained in:
parent
c9b6e921cc
commit
57a79cd113
@ -22,7 +22,7 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Mempak image loaded. Image type %d\n", mpk->file_format);
|
printf("Mempak image loaded. Image type %d (%s)\n", mpk->file_format, mempak_format2string(mpk->file_format));
|
||||||
|
|
||||||
if (0 != validate_mempak(mpk)) {
|
if (0 != validate_mempak(mpk)) {
|
||||||
printf("Mempak invalid (not formatted or corrupted)\n");
|
printf("Mempak invalid (not formatted or corrupted)\n");
|
||||||
@ -30,6 +30,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Mempak content is valid\n");
|
printf("Mempak content is valid\n");
|
||||||
|
printf("Block usage: %d / %d\n", 123-get_mempak_free_space(mpk), 123);
|
||||||
|
|
||||||
for (note = 0; note<MEMPAK_NUM_NOTES; note++) {
|
for (note = 0; note<MEMPAK_NUM_NOTES; note++) {
|
||||||
entry_structure_t note_data;
|
entry_structure_t note_data;
|
||||||
@ -49,7 +50,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Invalid\n");
|
printf("Free\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user