CHD: Use the hunk caching

We didn't remember the last hunk and always read again.
This commit is contained in:
Christoph "baka0815" Schwerdtfeger 2018-10-09 22:13:35 +02:00
parent e72bd9161e
commit 0f1c63b447
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ struct CHDTrack : TrackFile
if (disc->old_hunk!=hunk)
{
chd_read(disc->chd,hunk,disc->hunk_mem); //CHDERR_NONE
disc->old_hunk = hunk;
}
u32 hunk_ofs=fad_offs%disc->sph;