1
0
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:
Thomas Harte
2025-11-04 22:27:05 -05:00
parent 76082b1271
commit 1d2cdd85a3
+1 -1
View File
@@ -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_));