aboutsummaryrefslogtreecommitdiff
path: root/src/modules/launch.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-01-12 00:19:20 +0100
committer0neGal <mail@0negal.com>2024-01-12 00:19:20 +0100
commitca466e2b7494d51231df2dd81f69e6abd56fe2b1 (patch)
tree81124439915348cd2c5e6040bbc06c964e39fbc0 /src/modules/launch.js
parent05ea0cc58c0e6d6ebd1fc7cd4a135cefe2ec7dfc (diff)
downloadViper-ca466e2b7494d51231df2dd81f69e6abd56fe2b1.tar.gz
Viper-ca466e2b7494d51231df2dd81f69e6abd56fe2b1.zip
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.
Diffstat (limited to 'src/modules/launch.js')
-rw-r--r--src/modules/launch.js12
1 files changed, 10 insertions, 2 deletions
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;
}
}