From f5de8cca2b541d2f65517ab957a7713c2a9f9417 Mon Sep 17 00:00:00 2001 From: zapan Date: Thu, 11 Apr 2024 12:26:07 +0200 Subject: [PATCH] Added convert-atx command to convert ATX files to PNG files. --- .gitignore | 2 ++ DgfTxmConvert/Program.cs | 13 +++++++++++++ README.md | 1 + 3 files changed, 16 insertions(+) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 DgfTxmConvert/Program.cs mode change 100644 => 100755 README.md diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index f9d3d17..f8a4d88 --- a/.gitignore +++ b/.gitignore @@ -340,3 +340,5 @@ ASALocalRun/ healthchecksdb /DgfTxmConvert/Properties/launchSettings.json + +.idea \ No newline at end of file diff --git a/DgfTxmConvert/Program.cs b/DgfTxmConvert/Program.cs old mode 100644 new mode 100755 index 3635f8a..c3c130b --- a/DgfTxmConvert/Program.cs +++ b/DgfTxmConvert/Program.cs @@ -114,6 +114,19 @@ namespace DgfTxmConvert }); }); + app.Command("convert-atx", config => + { + config.FullName = "Converts ATX to PNG"; + config.Description = "Convert ATX files to PNG files"; + var inPath = config.Argument("inPath", "path").IsRequired(); + var filter = config.Argument("filter", "filter").IsRequired(); + config.HelpOption(); + config.OnExecute(() => + { + BulkConvertAtx(inPath.Value, filter.Value, false); + }); + }); + app.Command("dump-font", config => { config.FullName = "Dump kanji font"; diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 001013f..640bb7d --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ option. - `convert-mapanim`: Converts files from the mapanim folder to Wavefront OBJ models. - `decompress-dat`: Converts compressed DAT to flat DAT. +- `convert-atx`: Convert ATX files to PNG files. Other -----