aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-09 16:11:18 +0100
committer0neGal <mail@0negal.com>2023-03-09 16:13:50 +0100
commitd59cbd05f3d238b69458df458b58b67b439f0590 (patch)
tree40fefe6e57da4069c81c386816dd586974b0769c /src/app
parente666a607a66b560036c853b3a163aedc1b5ab638 (diff)
downloadViper-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/app')
-rw-r--r--src/app/main.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 1c846b4..7382a37 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
-const { ipcRenderer, shell } = require("electron");
+const { app, ipcRenderer, shell } = require("electron");
const lang = require("../lang");
var modsobj = {};
@@ -46,7 +46,6 @@ if (fs.existsSync("viper.json")) {
}
settings = {...settings, ...json};
- settings.zip = path.join(settings.gamepath + "/northstar.zip");
if (settings.gamepath.length === 0) {
setpath(false);