diff options
author | 2022-03-23 17:27:22 +0100 | |
---|---|---|
committer | 2022-03-23 17:27:31 +0100 | |
commit | 8b3c366a0411af7cb061a2b8c02985dd7f24b37d (patch) | |
tree | 675aac41b6417d3a1de7736171e4a19d68d6e67f /src/lib/formats/flex_dsk.cpp | |
parent | 330162f523a349d11c1bd97e27d8e22f0b34ae66 (diff) |
flex, img: Remove mutable variables from the class
Diffstat (limited to 'src/lib/formats/flex_dsk.cpp')
-rw-r--r-- | src/lib/formats/flex_dsk.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/formats/flex_dsk.cpp b/src/lib/formats/flex_dsk.cpp index 4989a25e707..45ea85ee257 100644 --- a/src/lib/formats/flex_dsk.cpp +++ b/src/lib/formats/flex_dsk.cpp @@ -110,8 +110,8 @@ int flex_format::find_size(util::random_read &io, uint32_t form_factor, const st if (info.month < 1 || info.month > 12 || info.day < 1 || info.day > 31) return -1; - boot0_sector_id = 1; - boot1_sector_id = 2; + uint8_t boot0_sector_id = 1; + // uint8_t boot1_sector_id = 2; // This floppy format uses a strategy of looking for 6800 boot code to // set the numbering of the first two sectors. If this is shown to not @@ -122,12 +122,13 @@ int flex_format::find_size(util::random_read &io, uint32_t form_factor, const st // Found a 6800 stack load and branch, looks like a 6800 boot sector. boot0_sector_id = 0; + // boot1 is not actually used (yet?) // Look for a link to the next sector, normal usage. - if (boot1[0] != 0 || boot1[1] != 3) - { + // if (boot1[0] != 0 || boot1[1] != 3) + // { // If not then assume it is a boot sector. - boot1_sector_id = 1; - } + // boot1_sector_id = 1; + // } } for (int i=0; formats[i].form_factor; i++) { |