aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-01-10 20:34:58 +0100
committerAlystrasz <contact@remyraes.com>2022-01-10 20:34:58 +0100
commit2dd43ab44db1a9eb29bc1e53f69810f0e2bb6012 (patch)
tree0080a53fe050f8723b01eef4cd1c72f97dad2904 /src
parent06d67801dc94d0b9fb359213d95ec5fba3e0c6ba (diff)
downloadViper-2dd43ab44db1a9eb29bc1e53f69810f0e2bb6012.tar.gz
Viper-2dd43ab44db1a9eb29bc1e53f69810f0e2bb6012.zip
[refactor] renaming exec to run
Diffstat (limited to 'src')
-rw-r--r--src/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.js b/src/utils.js
index faa0f13..b944a03 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -11,7 +11,7 @@ const lang = require("./lang");
const requests = require("./requests");
const unzip = require("unzipper");
-const exec = require("child_process").spawn;
+const run = require("child_process").spawn;
const { https } = require("follow-redirects");
process.chdir(app.getPath("appData"));
@@ -191,11 +191,11 @@ function launch(version) {
switch(version) {
case "vanilla":
console.log(lang("general.launching"), "Vanilla...")
- exec(path.join(settings.gamepath + "/Titanfall2.exe"))
+ run(path.join(settings.gamepath + "/Titanfall2.exe"))
break;
default:
console.log(lang("general.launching"), "Northstar...")
- exec(path.join(settings.gamepath + "/NorthstarLauncher.exe"))
+ run(path.join(settings.gamepath + "/NorthstarLauncher.exe"))
break;
}
}