From ca466e2b7494d51231df2dd81f69e6abd56fe2b1 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 12 Jan 2024 00:19:20 +0100 Subject: deprecate ns_startup_args.txt Ideally this has no side effects, however, I've not actually tested if the launching does properly use the launch arguments, due to not having a Windows device on hand. This will be tested later... We still attempt to load launch arguments from `ns_startup_args.txt` if none is set in the settings. However, this may be removed in the future. --- src/modules/launch.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/modules/launch.js') diff --git a/src/modules/launch.js b/src/modules/launch.js index 24ea4b2..9238336 100644 --- a/src/modules/launch.js +++ b/src/modules/launch.js @@ -24,15 +24,23 @@ function launch(game_version) { // change current directory to gamepath process.chdir(settings.gamepath); + let launch_args = settings.nsargs || ""; + // launch the requested game version switch(game_version) { case "vanilla": console.info(lang("general.launching"), "Vanilla..."); - exec("Titanfall2.exe", {cwd: settings.gamepath}); + exec("Titanfall2.exe " + launch_args, { + cwd: settings.gamepath + }) + break; default: console.info(lang("general.launching"), "Northstar..."); - exec("NorthstarLauncher.exe", {cwd: settings.gamepath}); + exec("NorthstarLauncher.exe " + launch_args, { + cwd: settings.gamepath + }) + break; } } -- cgit v1.2.3