aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js
index 85ce5ce..ec15554 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -16,6 +16,7 @@ process.chdir(app.getPath("appData"));
var settings = {
gamepath: "",
+ lang: "en-US",
zip: "/northstar.zip",
excludes: [
"ns_startup_args.txt",
@@ -30,7 +31,6 @@ if (fs.existsSync("viper.json")) {
console.log("Game path is not set! Please select the path.");
}
-
function setpath(win) {
if (! win) {
settings.gamepath = cli.param("setpath");
@@ -110,4 +110,8 @@ module.exports = {
update,
setpath,
settings,
+ setlang: (lang) => {
+ settings.lang = lang;
+ saveSettings();
+ },
}