From 2dd43ab44db1a9eb29bc1e53f69810f0e2bb6012 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Mon, 10 Jan 2022 20:34:58 +0100 Subject: [refactor] renaming exec to run --- src/utils.js | 6 +++--- 1 file 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; } } -- cgit v1.2.3