diff options
author | 0neGal <mail@0negal.com> | 2022-09-14 19:01:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 19:01:32 +0200 |
commit | 72e93deb5e65b67b71812c8ec983df5d2d85db2b (patch) | |
tree | 2436990f768400035ddba42de490ce2eb77e2e00 | |
parent | 1da94c96948511b3b69f82b502265735c0c005e4 (diff) | |
parent | 07541624bd2a391237f12016db62b9e318f55a45 (diff) | |
download | Viper-72e93deb5e65b67b71812c8ec983df5d2d85db2b.tar.gz Viper-72e93deb5e65b67b71812c8ec983df5d2d85db2b.zip |
Merge pull request #151 from Alystrasz/fix/northstar-freezes
fix: spawn game processes in separate shells
-rw-r--r-- | src/utils.js | 5 |
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; } } |