From 07541624bd2a391237f12016db62b9e318f55a45 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Tue, 13 Sep 2022 23:56:32 +0200 Subject: fix: spawn game processes in separate shells --- src/utils.js | 5 ++--- 1 file 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; } } -- cgit v1.2.3