diff --git a/.appveyor.yml b/.appveyor.yml index f5f9f6fe..c79a410a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -15,7 +15,7 @@ install: build_script: - make - - zip -9 fluxengine.zip fluxengine.exe brother120tool.exe fluxtovcd.exe fluxtoau.exe + - zip -9 fluxengine.zip fluxengine.exe brother120tool.exe fluxtoau.exe artifacts: - path: fluxengine.zip diff --git a/mkninja.sh b/mkninja.sh index 8e3b90a3..1b848024 100644 --- a/mkninja.sh +++ b/mkninja.sh @@ -179,8 +179,9 @@ buildlibrary libbackend.a \ lib/zilogmcz/decoder.cc \ buildlibrary libfrontend.a \ - src/fe-erase.cc \ src/fe-cwftoflux.cc \ + src/fe-erase.cc \ + src/fe-fluxtovcd.cc \ src/fe-inspect.cc \ src/fe-readadfs.cc \ src/fe-readaeslanier.cc \ @@ -221,11 +222,6 @@ buildsimpleprogram brother120tool \ libemu.a \ libfmt.a \ -buildsimpleprogram fluxtovcd \ - tools/fluxtovcd.cc \ - libbackend.a \ - libfmt.a \ - buildsimpleprogram fluxtoau \ tools/fluxtoau.cc \ libbackend.a \ diff --git a/tools/fluxtovcd.cc b/src/fe-fluxtovcd.cc similarity index 97% rename from tools/fluxtovcd.cc rename to src/fe-fluxtovcd.cc index 9a5db0e9..a0f1211d 100644 --- a/tools/fluxtovcd.cc +++ b/src/fe-fluxtovcd.cc @@ -26,7 +26,7 @@ static SettableFlag highDensityFlag( { "--high-density", "--hd" }, "set the drive to high density mode"); -int main(int argc, const char* argv[]) +int mainConvertFluxToVcd(int argc, const char* argv[]) { flags.parseFlags(argc, argv); diff --git a/src/fluxengine.cc b/src/fluxengine.cc index 5e42325e..6a07d9ee 100644 --- a/src/fluxengine.cc +++ b/src/fluxengine.cc @@ -4,6 +4,7 @@ typedef int command_cb(int agrc, const char* argv[]); extern command_cb mainErase; extern command_cb mainConvertCwfToFlux; +extern command_cb mainConvertFluxToVcd; extern command_cb mainInspect; extern command_cb mainReadADFS; extern command_cb mainReadAESLanier; @@ -81,6 +82,7 @@ static std::vector writeables = static std::vector convertables = { { "cwftoflux", mainConvertCwfToFlux, "Converts CatWeasel stream files to flux.", }, + { "fluxtovcd", mainConvertFluxToVcd, "Converts (one track of a) flux file to a VCD file.", }, }; static void extendedHelp(std::vector& subcommands, const std::string& command)