aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils.js b/src/utils.js
index 31a2b28..712d1b3 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -13,7 +13,6 @@ const findgame = require("./extras/findgame");
const unzip = require("unzipper");
const repair = require("jsonrepair");
-const run = require("child_process").spawn;
const exec = require("child_process").exec;
const { https } = require("follow-redirects");
@@ -491,11 +490,11 @@ function launch(version) {
switch(version) {
case "vanilla":
console.log(lang("general.launching"), "Vanilla...");
- run(path.join(settings.gamepath + "/Titanfall2.exe"));
+ exec("Titanfall2.exe", {cwd: settings.gamepath});
break;
default:
console.log(lang("general.launching"), "Northstar...");
- run(path.join(settings.gamepath + "/NorthstarLauncher.exe"));
+ exec("NorthstarLauncher.exe", {cwd: settings.gamepath});
break;
}
}