Initial support for twin drives and 5.25" drives.

This commit is contained in:
David Given
2019-02-11 23:43:44 +01:00
parent b6f99d4429
commit 2527ac2ce9
13 changed files with 119 additions and 24 deletions

View File

@@ -6,14 +6,15 @@ class DataSpec
public:
struct Location
{
unsigned drive;
unsigned track;
unsigned side;
bool operator == (const Location& other) const
{ return (track == other.track) && (side == other.side); }
{ return (drive == other.drive) && (track == other.track) && (side == other.side); }
bool operator != (const Location& other) const
{ return (track != other.track) || (side != other.side); }
{ return (drive != other.drive) || (track != other.track) || (side != other.side); }
};
struct Modifier
@@ -44,6 +45,7 @@ public:
std::string filename;
std::map<std::string, Modifier> modifiers;
std::vector<Location> locations;
unsigned drive;
};
std::ostream& operator << (std::ostream& os, const DataSpec& dataSpec)