mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Show size of ROM in blocks too
This commit is contained in:
parent
c7646c1799
commit
c8c99fa06c
@ -182,8 +182,10 @@ void printRomInfo(char const* fpath)
|
||||
//file size
|
||||
{
|
||||
iprintf("Size: ");
|
||||
printBytes(getRomSize(fpath));
|
||||
iprintf("\n");
|
||||
unsigned long long romSize = getRomSize(fpath);
|
||||
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user