aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-04 23:16:56 +0100
committer0neGal <mail@0negal.com>2023-03-04 23:16:56 +0100
commit4536aad2c4f19d32569d84a7082e8636a2be6985 (patch)
treeeb2f55fcce609a5c4a3ccc883d6279c46d7a15b1 /src/index.js
parent67c0fcd89d3ad3dfc29c402bae8bca845332b17c (diff)
downloadViper-4536aad2c4f19d32569d84a7082e8636a2be6985.tar.gz
Viper-4536aad2c4f19d32569d84a7082e8636a2be6985.zip
modularized getXXVersion() functions
Both getTF2Version() and getNSVersion() are now in version.js
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();