mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +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;
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user