diff options
author | 0neGal <mail@0negal.com> | 2024-02-03 19:15:29 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-02-03 19:21:23 +0100 |
commit | 159e2f981bdbfd6a0589639424155d34b7a4cc91 (patch) | |
tree | b3c1dfa3aaeb989b88abea6c9fc927c5dad3c2f9 /src/modules/packages.js | |
parent | 647bd1f6a76c834b3db9b70005f4b8365d1ded91 (diff) | |
download | Viper-159e2f981bdbfd6a0589639424155d34b7a4cc91.tar.gz Viper-159e2f981bdbfd6a0589639424155d34b7a4cc91.zip |
src/modules/settings.js now provides a function
This fixes a couple issues where the main process wouldn't actually get
changes made to the settings, this fixes that.
On top of this, changing settings is now done with `settings.set()`
There shouldn't be any breakage from this change, but I suppose it is
possible. Especially because the `settings()` function still does
contain backup options set, meaning `settings.nsargs` is technically
still valid, but dont expect it to actually be updated when that
variable is changed, its merely here to avoid any problems.
Diffstat (limited to 'src/modules/packages.js')
-rw-r--r-- | src/modules/packages.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/packages.js b/src/modules/packages.js index 38303e2..392c550 100644 --- a/src/modules/packages.js +++ b/src/modules/packages.js @@ -15,7 +15,7 @@ console = require("./console"); var packages = {}; function update_path() { - packages.path = path.join(settings.gamepath, "R2Northstar/packages"); + packages.path = path.join(settings().gamepath, "R2Northstar/packages"); // make sure the `packages` folder exists if (fs.existsSync(packages.path)) { |