@jtff/miztemplate-lib 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jtff-lib-ci.js +16 -16
- package/package.json +1 -1
package/lib/jtff-lib-ci.js
CHANGED
|
@@ -266,22 +266,22 @@ class MizTemplateCI{
|
|
|
266
266
|
const sub_unit = unit[sub_unit_key];
|
|
267
267
|
if (sub_unit["skill"] != "Client") continue;
|
|
268
268
|
// Aircraft is an A10CII, use A10C mode by creating files in the root with the unit id
|
|
269
|
-
if (radio_descriptor_table["aircraft"] == 'A-10C_2') {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
269
|
+
// if (radio_descriptor_table["aircraft"] == 'A-10C_2') {
|
|
270
|
+
// const unit_id = sub_unit["unitId"];
|
|
271
|
+
// ["UHF_RADIO", "VHF_AM_RADIO", "VHF_FM_RADIO"].forEach(folder => {
|
|
272
|
+
// var zip_folder = zip.folder("Avionics/A-10C_2/" + unit_id + "/" + folder);
|
|
273
|
+
// var file = parse("return " + dcs_radio_presets)[folder];
|
|
274
|
+
// file = format(file, { singleQuote: false });
|
|
275
|
+
// file = file
|
|
276
|
+
// .split('\n')
|
|
277
|
+
// .slice(1, -1)
|
|
278
|
+
// .join('\n')
|
|
279
|
+
// .slice(0, -1)
|
|
280
|
+
// .replace(/\[\"(\d+)\"\] = /g, "[$1] = ");
|
|
281
|
+
// zip_folder.file("SETTINGS.lua", file);
|
|
282
|
+
// });
|
|
283
|
+
// continue;
|
|
284
|
+
// }
|
|
285
285
|
if (sub_unit["type"] != radio_descriptor_table["aircraft"]) continue;
|
|
286
286
|
// GROUP FOUND, SET RADIOS
|
|
287
287
|
sub_unit["Radio"] = parse("return " + dcs_radio_presets)
|