hdl-dump
hdl-dump copied to clipboard
raw_size_in_kb calculations seem to be off
I seem to get wildly inflated sizes on multi-chunk games:
type size flags dma
DVD 1035799904KB
DVD 1035801760KB
DVD 1073663520KB
DVD 2662272KB *u4
CD 247804KB *u4
DVD 1052935488KB
DVD 1529856KB *u4
DVD 3222848KB *u4
DVD 1052892480KB
DVD 1071158912KB
DVD 1052966368KB 1+2+3+6
DVD 1016355168KB 6
DVD 1052788512KB
DVD 1036352160KB
CD 295782KB *u4
total 121856MB, used 55552MB, ava
It seems unlikely that my PS2 has 1.07366TB games installed on it ;)
I’ve tested building both 32 and 64-bit binaries, thinking it might be a 32- to 64-bit issue, but both give the same output, so it’s not a type issue.
I suspect this is doing something weird!
https://github.com/AKuHAK/hdl-dump/blob/75df8d753757967475bf3f84d139140a933c3d91/hdl.c#L1120-L1123