aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 02:57:41 +0100
committer0neGal <mail@0negal.com>2021-12-27 02:57:41 +0100
commitfa94f92e15b5e1e7fe2bcdeb4d74b153cc47c133 (patch)
treeb2be6c48c0d98d5b81cb8d9e6e1e55d5d49ec433 /src/app/main.js
parent763f23226d6e5bf3aa7eff0dfa4fc8f6e4118ac1 (diff)
downloadViper-fa94f92e15b5e1e7fe2bcdeb4d74b153cc47c133.tar.gz
Viper-fa94f92e15b5e1e7fe2bcdeb4d74b153cc47c133.zip
fixed settings being saved improperly
Im a dumbass and made a tiny mistake...
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 404e762..82d6526 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -9,7 +9,7 @@ var settings = {
}
if (fs.existsSync(settings.file)) {
- settings.gamepath = {...settings, ...JSON.parse(fs.readFileSync(settings.file, "utf8"))};
+ settings = {...settings, ...JSON.parse(fs.readFileSync(settings.file, "utf8"))};
settings.zip = path.join(settings.gamepath + "/northstar.zip");
} else {
alert("Game path is not set! Please select the path!");