1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-07 08:28:57 +00:00

Fixed search for track start position with extended disks: it's no longer an infinite loop. So that's a pretty good performance improvement.

This commit is contained in:
Thomas Harte 2017-08-07 11:36:29 -04:00
parent a294963e98
commit d951c8c1c2

View File

@ -60,6 +60,7 @@ std::shared_ptr<Track> CPCDSK::get_uncached_track_at_position(unsigned int head,
unsigned int t = 0;
while(t < chronological_track && t < track_sizes_.size()) {
file_offset += track_sizes_[t];
t++;
}
} else {
// Tracks are a fixed size in the original DSK file format.