From 513050315310cf9b25a01dcbcdf13de28d180457 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Mon, 5 Oct 2020 20:26:28 +0200 Subject: [PATCH] https://github.com/Portree-Kid/flightgear-airports/issues/95 --- src/renderer/loaders/groundnet_writer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/loaders/groundnet_writer.js b/src/renderer/loaders/groundnet_writer.js index 4d51578..5fa6463 100644 --- a/src/renderer/loaders/groundnet_writer.js +++ b/src/renderer/loaders/groundnet_writer.js @@ -83,7 +83,7 @@ exports.writeGroundnetXML = function (fDir, icao, featureList) { var arcList = []; var frequencies = []; - var version = new Date().toUTCString() + ' by FlightgearAirports'; + var version = new Date().toUTCString() + ' by FlightgearAirports ' + require('electron').remote.app.getVersion(); var name = store.default.state.Settings.settings.name; featureLookup = []; @@ -173,7 +173,7 @@ exports.writeGroundnetXML = function (fDir, icao, featureList) { var unicomList = store.default.state.Frequencies.items.filter(f => f.type === 'UNICOM').map(mapFrequency); - var xmlObj = { groundnet: { version: version, name: name, + var xmlObj = { groundnet: { version: 1, fgaversion: version, name: name, 'frequencies': { APPROACH: approachList, DEPARTURE: departureList, AWOS: awosList, CLEARANCE: clearanceList, GROUND: groundList, TOWER: towerList, UNICOM: unicomList }, parkingList: { Parking: parkings }, TaxiNodes: { node: uniqueNodes }, TaxiWaySegments: { arc: arcList } } };