mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Remove some obsolete tools.
This commit is contained in:
@@ -418,7 +418,6 @@ buildlibrary libfrontend.a \
|
||||
$OBJDIR/writables.cc \
|
||||
src/fe-analysedriveresponse.cc \
|
||||
src/fe-analyselayout.cc \
|
||||
src/fe-image.cc \
|
||||
src/fe-inspect.cc \
|
||||
src/fe-rawread.cc \
|
||||
src/fe-rawwrite.cc \
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#include "globals.h"
|
||||
#include "flags.h"
|
||||
#include "sector.h"
|
||||
#include "sectorset.h"
|
||||
#include "imagereader/imagereader.h"
|
||||
#include "imagewriter/imagewriter.h"
|
||||
#include "fmt/format.h"
|
||||
#include <fstream>
|
||||
|
||||
static FlagGroup flags { };
|
||||
|
||||
static void syntax()
|
||||
{
|
||||
std::cout << "Syntax: fluxengine convert image <srcspec> <destspec>\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int mainConvertImage(int argc, const char* argv[])
|
||||
{
|
||||
Error() << "unimplemented";
|
||||
#if 0
|
||||
auto filenames = flags.parseFlagsWithFilenames(argc, argv);
|
||||
if (filenames.size() != 2)
|
||||
syntax();
|
||||
|
||||
DataSpec ids(filenames[0]);
|
||||
ImageSpec iis(ids);
|
||||
SectorSet sectors = ImageReader::create(iis)->readImage();
|
||||
|
||||
DataSpec ods(filenames[1]);
|
||||
ImageSpec ois(ods);
|
||||
auto writer = ImageWriter::create(sectors, ois);
|
||||
writer->adjustGeometry();
|
||||
writer->printMap();
|
||||
writer->writeImage();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
#include "globals.h"
|
||||
#include "flags.h"
|
||||
#include "decoders/decoders.h"
|
||||
#include "encoders/encoders.h"
|
||||
#include "brother/brother.h"
|
||||
#include "writer.h"
|
||||
#include "fmt/format.h"
|
||||
#include <fstream>
|
||||
|
||||
static FlagGroup flags { &writerFlags, &brotherEncoderFlags };
|
||||
|
||||
static int brotherFormat = 240;
|
||||
static ActionFlag preset120(
|
||||
{ "--brother-preset-120" },
|
||||
"Write the Brother 120kB format instead of the 240kB one.",
|
||||
[] {
|
||||
setWriterDefaultInput(":c=39:h=1:s=12:b=256");
|
||||
brotherFormat = 120;
|
||||
});
|
||||
|
||||
static IntFlag bias(
|
||||
{ "--brother-track-bias" },
|
||||
"Shift the entire format this many tracks on the disk.",
|
||||
0);
|
||||
|
||||
int mainWriteBrother(int argc, const char* argv[])
|
||||
{
|
||||
setWriterDefaultInput(":c=78:h=1:s=12:b=256");
|
||||
setWriterDefaultDest(":d=0:t=0-77:s=0");
|
||||
flags.parseFlags(argc, argv);
|
||||
|
||||
BrotherEncoder encoder(brotherFormat, bias);
|
||||
writeDiskCommand(encoder);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ typedef int command_cb(int agrc, const char* argv[]);
|
||||
|
||||
extern command_cb mainAnalyseDriveResponse;
|
||||
extern command_cb mainAnalyseLayout;
|
||||
extern command_cb mainConvertImage;
|
||||
extern command_cb mainInspect;
|
||||
extern command_cb mainRawRead;
|
||||
extern command_cb mainRawWrite;
|
||||
@@ -23,13 +22,11 @@ struct Command
|
||||
std::string help;
|
||||
};
|
||||
|
||||
static command_cb mainConvert;
|
||||
static command_cb mainAnalyse;
|
||||
static command_cb mainTest;
|
||||
|
||||
static std::vector<Command> commands =
|
||||
{
|
||||
{ "convert", mainConvert, "Converts various types of data file.", },
|
||||
{ "inspect", mainInspect, "Low-level analysis and inspection of a disk." },
|
||||
{ "analyse", mainAnalyse, "Disk and drive analysis tools." },
|
||||
{ "read", mainRead, "Reads a disk, producing a sector image.", },
|
||||
@@ -42,11 +39,6 @@ static std::vector<Command> commands =
|
||||
{ "upgradefluxfile", mainUpgradeFluxFile, "Upgrades a flux file from a previous version of this software.", },
|
||||
};
|
||||
|
||||
static std::vector<Command> convertables =
|
||||
{
|
||||
{ "image", mainConvertImage, "Converts one disk image to another.", },
|
||||
};
|
||||
|
||||
static std::vector<Command> analysables =
|
||||
{
|
||||
{ "driveresponse", mainAnalyseDriveResponse, "Measures the drive's ability to read and write pulses.", },
|
||||
@@ -90,9 +82,6 @@ static int mainExtended(std::vector<Command>& subcommands, const std::string& co
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int mainConvert(int argc, const char* argv[])
|
||||
{ return mainExtended(convertables, "convert", argc, argv); }
|
||||
|
||||
static int mainAnalyse(int argc, const char* argv[])
|
||||
{ return mainExtended(analysables, "analyse", argc, argv); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user