mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Corrects track count calculation for DSD disks.
This commit is contained in:
parent
e8e166eec5
commit
74be876d72
@ -25,7 +25,7 @@ SSD::SSD(const std::string &file_name) : MFMSectorDump(file_name) {
|
||||
|
||||
// this has two heads if the suffix is .dsd, one if it's .ssd
|
||||
head_count_ = (tolower(file_name[file_name.size() - 3]) == 'd') ? 2 : 1;
|
||||
track_count_ = int(file_.stats().st_size / (256 * 10));
|
||||
track_count_ = int(file_.stats().st_size / (256 * 10 * head_count_));
|
||||
if(track_count_ < 40) track_count_ = 40;
|
||||
else if(track_count_ < 80) track_count_ = 80;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user