From 98c1e7253c59687da82bf30bb69e19ff8b575baa Mon Sep 17 00:00:00 2001 From: "Christoph \"baka0815\" Schwerdtfeger" Date: Tue, 9 Oct 2018 22:13:35 +0200 Subject: [PATCH] CHD: Use the hunk caching We didn't remember the last hunk and always read again. --- core/imgread/chd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/imgread/chd.cpp b/core/imgread/chd.cpp index ef434a226..47e176c0c 100644 --- a/core/imgread/chd.cpp +++ b/core/imgread/chd.cpp @@ -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;