Don't allow writing Apple 2 flux images to SCP files, because there

isn't space for the quarter-step tracks.
This commit is contained in:
David Given
2025-08-17 11:42:34 +02:00
parent 18bdb27225
commit 786636ef5d

View File

@@ -52,6 +52,8 @@ public:
_fileheader.start_track = strackno(minTrack, minSide); _fileheader.start_track = strackno(minTrack, minSide);
_fileheader.end_track = strackno(maxTrack, maxSide); _fileheader.end_track = strackno(maxTrack, maxSide);
_fileheader.flags = SCP_FLAG_INDEXED; _fileheader.flags = SCP_FLAG_INDEXED;
if (globalConfig()->drive().drive_type() == DRIVETYPE_APPLE2)
error("you can't write Apple II flux images to SCP files yet");
if (globalConfig()->drive().drive_type() != DRIVETYPE_40TRACK) if (globalConfig()->drive().drive_type() != DRIVETYPE_40TRACK)
_fileheader.flags |= SCP_FLAG_96TPI; _fileheader.flags |= SCP_FLAG_96TPI;
_fileheader.cell_width = 0; _fileheader.cell_width = 0;