mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Flux sources now add the locations of their data to _extraConfig ---
which is now honoured. Fix a bunch of bugs in some of the flux sources and sinks. The converter now actually works, maybe.
This commit is contained in:
@@ -31,7 +31,16 @@ private:
|
||||
class MemoryFluxSource : public FluxSource
|
||||
{
|
||||
public:
|
||||
MemoryFluxSource(const DiskFlux& flux): _flux(flux) {}
|
||||
MemoryFluxSource(const DiskFlux& flux): _flux(flux)
|
||||
{
|
||||
std::vector<CylinderHead> chs;
|
||||
for (const auto& trackFlux : flux.tracks)
|
||||
chs.push_back(
|
||||
CylinderHead{(unsigned)trackFlux->trackInfo->physicalTrack,
|
||||
(unsigned)trackFlux->trackInfo->logicalTrack});
|
||||
_extraConfig.mutable_drive()->set_tracks(
|
||||
convertCylinderHeadsToString(chs));
|
||||
}
|
||||
|
||||
public:
|
||||
std::unique_ptr<FluxSourceIterator> readFlux(
|
||||
|
||||
Reference in New Issue
Block a user