Lameguy64 / mkpsxiso

ISO disc image maker written specifically for PlayStation homebrew development
GNU General Public License v2.0
223 stars 36 forks source link

str xa file lenght in directory is wrong #4

Closed shikeyu closed 6 years ago

shikeyu commented 6 years ago

Original ISO image Remake ISO image

I did not change the size of these STR files. In the PSX ISO, the display size of the STR file in the directory is the LBA number multiplied by 2048. The actual file size is the LBA number multiplied by 2336.

45636096/2336=19536 19536*2048=40009728

Lameguy64 commented 6 years ago

Considered for the next update. Is it causing any significant issues in the game so far?

shikeyu commented 6 years ago

This bug has no hindrance to the running of the program. However, another bug is fatal. In the LBA 18-21, there is some data about the directory. There are two bytes in front of the directory name that seem to be about the depth of the directory, which is incremented in the remaked iso, which causes the directory data to fail to read. image

Lameguy64 commented 6 years ago

Looks to be path table related. Are you using the recently released version of mkpsxiso which fixes the path table encoding from previous versions?

shikeyu commented 6 years ago

I try the 1.19 version. There is no problem now. Thank you.

Lameguy64 commented 6 years ago

Released 1.20 which includes corrections on the file size calculation for STR and DA type files. See if that has solved one of your remaining issues with mkpsxiso.