From 4536aad2c4f19d32569d84a7082e8636a2be6985 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 4 Mar 2023 23:16:56 +0100 Subject: modularized getXXVersion() functions Both getTF2Version() and getNSVersion() are now in version.js --- src/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/index.js') 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(); -- cgit v1.2.3