mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	Remove the rest of the mapper.
This commit is contained in:
		| @@ -5,7 +5,6 @@ | ||||
| #include "fmt/format.h" | ||||
| #include "image.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "proto.h" | ||||
| #include <algorithm> | ||||
| #include <iostream> | ||||
| @@ -56,7 +55,6 @@ public: | ||||
|         for (int track = 0; track < 40; track++) | ||||
|         { | ||||
|             int numSectors = sectorsPerTrack(track); | ||||
|             int physicalTrack = Mapper::remapTrackLogicalToPhysical(track); | ||||
|             for (int head = 0; head < numHeads; head++) | ||||
|             { | ||||
|                 for (int sectorId = 0; sectorId < numSectors; sectorId++) | ||||
| @@ -69,14 +67,12 @@ public: | ||||
|                         offset += 256; | ||||
|  | ||||
|                         sector->status = Sector::OK; | ||||
|                         sector->physicalTrack = physicalTrack; | ||||
|                         sector->data.writer().append(payload); | ||||
|                     } | ||||
|                     else | ||||
|                     { // no more data in input file. Write sectors with status: | ||||
|                       // DATA_MISSING | ||||
|                         sector->status = Sector::DATA_MISSING; | ||||
|                         sector->physicalTrack = physicalTrack; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
| @@ -5,7 +5,6 @@ | ||||
| #include "image.h" | ||||
| #include "proto.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
| #include <algorithm> | ||||
|   | ||||
| @@ -4,7 +4,6 @@ | ||||
| #include "imagereader/imagereader.h" | ||||
| #include "image.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "proto.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
|   | ||||
| @@ -4,7 +4,6 @@ | ||||
| #include "imagereader/imagereader.h" | ||||
| #include "image.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
| #include <algorithm> | ||||
|   | ||||
| @@ -5,7 +5,6 @@ | ||||
| #include "image.h" | ||||
| #include "proto.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
| #include <algorithm> | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
| #include "image.h" | ||||
| #include "proto.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "layout.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
| #include <algorithm> | ||||
| @@ -372,14 +372,14 @@ public: | ||||
| 				if (blnOptionalCylinderMap) //there was een optional cylinder map. write it to the sector | ||||
| 				//The Sector Cylinder Map has one entry for each sector, and contains the logical Cylinder ID for the corresponding sector in the Sector Numbering Map. | ||||
| 				{ | ||||
| 					sector->physicalTrack = Mapper::remapTrackLogicalToPhysical(header.track); | ||||
| 					sector->physicalTrack = Layout::remapTrackLogicalToPhysical(header.track); | ||||
| 					sector->logicalTrack = optionalsector_map[s]; | ||||
| 					blnOptionalCylinderMap = false; | ||||
| 				} | ||||
| 				else  | ||||
| 				{ | ||||
| 					sector->logicalTrack = header.track; | ||||
|                     sector->physicalTrack = Mapper::remapTrackLogicalToPhysical(header.track); | ||||
|                     sector->physicalTrack = Layout::remapTrackLogicalToPhysical(header.track); | ||||
| 				} | ||||
| 				if (blnOptionalHeadMap) //there was een optional head map. write it to the sector | ||||
| 				//The Sector Head Map has one entry for each sector, and contains the logical Head ID for the corresponding sector in the Sector Numbering Map. | ||||
|   | ||||
| @@ -4,7 +4,6 @@ | ||||
| #include "imagereader/imagereader.h" | ||||
| #include "image.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "lib/layout.pb.h" | ||||
| #include "lib/proto.h" | ||||
|   | ||||
| @@ -3,7 +3,6 @@ | ||||
| #include "sector.h" | ||||
| #include "imagereader/imagereader.h" | ||||
| #include "image.h" | ||||
| #include "mapper.h" | ||||
| #include "logger.h" | ||||
| #include "fmt/format.h" | ||||
| #include "lib/config.pb.h" | ||||
|   | ||||
| @@ -5,7 +5,6 @@ | ||||
| #include "image.h" | ||||
| #include "proto.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
| #include <algorithm> | ||||
|   | ||||
| @@ -7,7 +7,6 @@ | ||||
| #include "image.h" | ||||
| #include "fmt/format.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "lib/imagereader/imagereader.pb.h" | ||||
| #include <algorithm> | ||||
| #include <iostream> | ||||
|   | ||||
| @@ -5,7 +5,6 @@ | ||||
| #include "image.h" | ||||
| #include "crc.h" | ||||
| #include "logger.h" | ||||
| #include "mapper.h" | ||||
| #include "fmt/format.h" | ||||
| #include "lib/config.pb.h" | ||||
| #include "fmt/format.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user