Added convert-atx command to convert ATX files to PNG files.

This commit is contained in:
zapan 2024-04-11 12:26:07 +02:00
parent bac244eb2f
commit f5de8cca2b
3 changed files with 16 additions and 0 deletions

2
.gitignore vendored Normal file → Executable file
View file

@ -340,3 +340,5 @@ ASALocalRun/
healthchecksdb healthchecksdb
/DgfTxmConvert/Properties/launchSettings.json /DgfTxmConvert/Properties/launchSettings.json
.idea

13
DgfTxmConvert/Program.cs Normal file → Executable file
View file

@ -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 => app.Command("dump-font", config =>
{ {
config.FullName = "Dump kanji font"; config.FullName = "Dump kanji font";

1
README.md Normal file → Executable file
View file

@ -29,6 +29,7 @@ option.
- `convert-mapanim`: Converts files from the mapanim folder to Wavefront OBJ - `convert-mapanim`: Converts files from the mapanim folder to Wavefront OBJ
models. models.
- `decompress-dat`: Converts compressed DAT to flat DAT. - `decompress-dat`: Converts compressed DAT to flat DAT.
- `convert-atx`: Convert ATX files to PNG files.
Other Other
----- -----