Show size of ROM in blocks too

This commit is contained in:
Pk11 2022-01-14 16:03:03 -06:00
parent c7646c1799
commit c8c99fa06c

View File

@ -182,8 +182,10 @@ void printRomInfo(char const* fpath)
//file size //file size
{ {
iprintf("Size: "); iprintf("Size: ");
printBytes(getRomSize(fpath)); unsigned long long romSize = getRomSize(fpath);
iprintf("\n"); printBytes(romSize);
//size in blocks, rounded up
iprintf(" (%lld blocks)\n", ((romSize / BYTES_PER_BLOCK) * BYTES_PER_BLOCK + BYTES_PER_BLOCK) / BYTES_PER_BLOCK);
} }
iprintf("Label: %.12s\n", h->ndshdr.gameTitle); iprintf("Label: %.12s\n", h->ndshdr.gameTitle);