From fa8cd0080ac65df2115636d3fddd0f530c5168f1 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Wed, 6 Nov 2019 16:56:11 +0100 Subject: [PATCH] Parse arguments --- Sources/arm/App.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/arm/App.hx b/Sources/arm/App.hx index e6ddb07f..f5d48287 100644 --- a/Sources/arm/App.hx +++ b/Sources/arm/App.hx @@ -162,8 +162,14 @@ class App { // UITrait.inst.show2DView(1); // } } - if (Krom.getArgCount() > 2) { // Texture export path argument + // Parse arguments + // armorpaint import_path export_path export_file_name + if (Krom.getArgCount() > 2) { UITrait.inst.textureExportPath = Krom.getArg(2); + if (Krom.getArgCount() > 3) { + UIFiles.filename = Krom.getArg(3); + UITrait.inst.outputType = 1; // occ-rough-met + } } }); });