mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Make extension optional in --export command.
Added add_extension function Added ExportTemplate::byName Use ExportTemplate::byName in main
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ int MSE::OnRun() {
|
||||
throw Error(_("No input set file specified for --export"));
|
||||
}
|
||||
String export_template = args[1];
|
||||
ExportTemplateP exp = package_manager.open<ExportTemplate>(export_template);
|
||||
ExportTemplateP exp = ExportTemplate::byName(export_template);
|
||||
SetP set = import_set(args[2]);
|
||||
String out = args.size() >= 4 ? args[3] : _("");
|
||||
ScriptValueP result = export_set(set, set->cards, exp, out);
|
||||
|
||||
Reference in New Issue
Block a user