diff options
author | 0neGal <mail@0negal.com> | 2023-03-09 16:11:18 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-03-09 16:13:50 +0100 |
commit | d59cbd05f3d238b69458df458b58b67b439f0590 (patch) | |
tree | 40fefe6e57da4069c81c386816dd586974b0769c /src/modules/settings.js | |
parent | e666a607a66b560036c853b3a163aedc1b5ab638 (diff) | |
download | Viper-d59cbd05f3d238b69458df458b58b67b439f0590.tar.gz Viper-d59cbd05f3d238b69458df458b58b67b439f0590.zip |
download Northstar to <cache_dir>/vipertmp
"cache_dir" being wherever your OS puts it's cache, it's the same place
mods.js uses to download mods.
This prevents cluttering up the gamepath with temporary files.
Diffstat (limited to 'src/modules/settings.js')
-rw-r--r-- | src/modules/settings.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/settings.js b/src/modules/settings.js index d71ea2a..76326cc 100644 --- a/src/modules/settings.js +++ b/src/modules/settings.js @@ -40,7 +40,7 @@ if (fs.existsSync("viper.json")) { ...settings, ...conf } - settings.zip = path.join(settings.gamepath + "/northstar.zip"); + settings.zip = path.join(app.getPath("cache"), "vipertmp/northstar.zip"); let args = path.join(settings.gamepath, "ns_startup_args.txt"); if (fs.existsSync(args)) { |