mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-24 05:18:36 +00:00
Explain size limit.
This commit is contained in:
@@ -26,7 +26,7 @@ SSD::SSD(const std::string &file_name) : MFMSectorDump(file_name) {
|
||||
|
||||
if(file_.stats().st_size & 255) throw Error::InvalidFormat;
|
||||
if(file_.stats().st_size < 512) throw Error::InvalidFormat;
|
||||
if(file_.stats().st_size > 800*256) throw Error::InvalidFormat;
|
||||
if(file_.stats().st_size > 80*2*10*256) throw Error::InvalidFormat;
|
||||
|
||||
head_count_ = is_double_sided ? 2 : 1;
|
||||
track_count_ = int(file_.stats().st_size / (256 * 10 * head_count_));
|
||||
|
||||
Reference in New Issue
Block a user