libretro-mirrors / beetle-saturn-libretro

Standalone port of Mednafen Saturn to the libretro API.
GNU General Public License v2.0
61 stars 40 forks source link

CHD: fix block address calculations #215

Closed aitorciki closed 2 years ago

aitorciki commented 2 years ago

CHDs tracks are padded to a 4-frame boundary, causing physical and CHD block addresses to differ after track 1. Adjusting sector reading to account for this offset fixes support of multi-data-track CHDs like Last Bronx (#162).

I've tested against ~30 CHDs successfully, but would be definitely good to further check compatibility against a wider sample.