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

@@ -61,13 +61,13 @@ public:
if (mediaFlag == 0x20)
{
_extraConfig.mutable_drive()->set_high_density(true);
_extraConfig.mutable_layout()->set_tpi(96);
_extraConfig.mutable_layout()->set_format_type(FORMATTYPE_80TRACK);
}
else
{
clockRate = 300;
_extraConfig.mutable_drive()->set_high_density(false);
_extraConfig.mutable_layout()->set_tpi(48);
_extraConfig.mutable_layout()->set_format_type(FORMATTYPE_40TRACK);
}
auto layout = _extraConfig.mutable_layout();

View File

@@ -58,7 +58,7 @@ public:
log("NFD: HD 1.2MB mode");
log("NFD: forcing hign density mode");
_extraConfig.mutable_drive()->set_high_density(true);
_extraConfig.mutable_layout()->set_tpi(96);
_extraConfig.mutable_layout()->set_format_type(FORMATTYPE_80TRACK);
std::unique_ptr<Image> image(new Image);
for (int track = 0; track < 163; track++)