mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
A GameCube disc in a plain image is lent by the volume as it lies in the mapped file. Such a read never goes to the DVD thread and has no buffer: it starts by asking the OS to prefetch its pages, and when it is due its bytes go from the mapping into emulated memory, or to the DTK stream, in one copy. Compressed, encrypted and assembled images keep the DVD thread. A savestate stores pending lent reads as the results the DVD thread would have made, so states keep their format, and a disc change turns them into results before the old image goes.