aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-09-13 23:56:32 +0200
committerAlystrasz <contact@remyraes.com>2022-09-13 23:56:32 +0200
commit07541624bd2a391237f12016db62b9e318f55a45 (patch)
tree2436990f768400035ddba42de490ce2eb77e2e00
parent1da94c96948511b3b69f82b502265735c0c005e4 (diff)
downloadViper-07541624bd2a391237f12016db62b9e318f55a45.tar.gz
Viper-07541624bd2a391237f12016db62b9e318f55a45.zip
fix: spawn game processes in separate shells
-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;
}
}