Eliminate the broken tpi system for a simple drive/format type field.

This commit is contained in:
David Given
2023-10-29 21:10:14 +01:00
parent ff1fb761f2
commit 533b217c8f
86 changed files with 1831 additions and 798 deletions

View File

@@ -42,8 +42,9 @@ public:
(_header.file_id[2] != 'P'))
error("input not a SCP file");
int tpi = (_header.flags & SCP_FLAG_96TPI) ? 96 : 48;
_extraConfig.mutable_drive()->set_tpi(tpi);
_extraConfig.mutable_drive()->set_drive_type(
(_header.flags & SCP_FLAG_96TPI) ? DRIVETYPE_80TRACK
: DRIVETYPE_40TRACK);
_resolution = 25 * (_header.resolution + 1);
int startSide = (_header.heads == 2) ? 1 : 0;