diff --git a/src/app/main.js b/src/app/main.js index a781ef10..1688ab26 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -33,6 +33,11 @@ if (fs.existsSync("viper.json")) { } else { setpath(true); } + + let args = path.join(settings.gamepath, "ns_startup_args.txt"); + if (fs.existsSync(args)) { + settings.nsargs = fs.readFileSync(args, "utf8"); + } } else { setpath(); } diff --git a/src/utils.js b/src/utils.js index 6069a463..7c1c22be 100644 --- a/src/utils.js +++ b/src/utils.js @@ -39,6 +39,11 @@ var settings = { if (fs.existsSync("viper.json")) { settings = {...settings, ...JSON.parse(fs.readFileSync("viper.json", "utf8"))}; settings.zip = path.join(settings.gamepath + "/northstar.zip"); + + let args = path.join(settings.gamepath, "ns_startup_args.txt"); + if (fs.existsSync(args)) { + settings.nsargs = fs.readFileSync(args, "utf8"); + } } else { console.log(lang("general.missingpath")); }