aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js
index 638bebb..991717b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -10,6 +10,7 @@ const utils = require("./utils");
const cli = require("./cli");
const json = require("./modules/json");
const mods = require("./modules/mods");
+const version = require("./modules/version");
const settings = require("./modules/settings");
const requests = require("./modules/requests");
@@ -179,8 +180,8 @@ ipcMain.on("setpath", (event, value) => {
// retrieves various local version numbers
function sendVersionsInfo() {
send("version", {
- ns: utils.getNSVersion(),
- tf2: utils.getTF2Version(),
+ ns: version.northstar(),
+ tf2: version.titanfall(),
vp: "v" + require("../package.json").version
});
}
@@ -191,7 +192,8 @@ ipcMain.on("get-version", () => {sendVersionsInfo()});
// prints out version info for the CLI
ipcMain.on("version-cli", () => {
log("Viper: v" + require("../package.json").version);
- log("Northstar: " + utils.getNSVersion());
+ log("Titanfall 2: " + version.titanfall());
+ log("Northstar: " + version.northstar());
log("Node: " + process.version);
log("Electron: v" + process.versions.electron);
cli.exit();