aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-09-14 19:10:44 +0200
committer0neGal <mail@0negal.com>2022-09-14 19:10:44 +0200
commitd8760e60cecb51758cc32056b082c5f83886ea45 (patch)
treea6b709d604d77bad9d4911ac405f73105f5aebf7 /src/utils.js
parent0c719656d99c69e11794b61a04e2fa31bbe5bb22 (diff)
downloadViper-d8760e60cecb51758cc32056b082c5f83886ea45.tar.gz
Viper-d8760e60cecb51758cc32056b082c5f83886ea45.zip
differentiation between update() and updatevp()
Some functions have been renamed: update() -> updateNorthstar() updatevp() -> updateViper() Overall these are far better function names...
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.js b/src/utils.js
index 712d1b3..b69c957 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -168,7 +168,7 @@ function handleNorthstarUpdating() {
}).show();
} else {
console.log(lang("cli.autoupdates.updatingns"));
- update();
+ updateNorthstar();
}
} else {
console.log(lang("cli.autoupdates.noupdate"));
@@ -352,7 +352,7 @@ restoreExcludedFiles();
// As to handle not overwriting files we rename certain files to
// <file>.excluded, then rename them back after the extraction. The
// unzip module does not support excluding files directly.
-async function update() {
+async function updateNorthstar() {
if (! gamepathExists()) {return}
ipcMain.emit("ns-update-event", "cli.update.checking");
@@ -445,7 +445,7 @@ async function update() {
// This uses electron updater to easily update and publish releases, it
// simply fetches it from GitHub and updates if it's outdated, very
// useful. Not much we have to do on our side.
-function updatevp(autoinstall) {
+function updateViper(autoinstall) {
const { autoUpdater } = require("electron-updater");
if (! autoUpdater.isUpdaterActive()) {
@@ -938,10 +938,10 @@ module.exports = {
mods,
winLog,
- update,
- updatevp,
+ updateViper,
getNSVersion,
getTF2Version,
+ updateNorthstar,
handleNorthstarUpdating,
launch,