mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-20 13:29:27 +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:
parent
a294963e98
commit
d951c8c1c2
@ -60,6 +60,7 @@ std::shared_ptr<Track> CPCDSK::get_uncached_track_at_position(unsigned int head,
|
|||||||
unsigned int t = 0;
|
unsigned int t = 0;
|
||||||
while(t < chronological_track && t < track_sizes_.size()) {
|
while(t < chronological_track && t < track_sizes_.size()) {
|
||||||
file_offset += track_sizes_[t];
|
file_offset += track_sizes_[t];
|
||||||
|
t++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Tracks are a fixed size in the original DSK file format.
|
// Tracks are a fixed size in the original DSK file format.
|
||||||
|
Loading…
Reference in New Issue
Block a user