diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/main.js b/src/app/main.js index be13beb..d390962 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -4,7 +4,6 @@ const { ipcRenderer } = require("electron"); var settings = { gamepath: "", - file: "viper.json", zip: "/northstar.zip", excludes: [ "ns_startup_args.txt", @@ -12,8 +11,8 @@ var settings = { ] } -if (fs.existsSync(settings.file)) { - settings = {...settings, ...JSON.parse(fs.readFileSync(settings.file, "utf8"))}; +if (fs.existsSync("viper.json")) { + settings = {...settings, ...JSON.parse(fs.readFileSync("viper.json", "utf8"))}; settings.zip = path.join(settings.gamepath + "/northstar.zip"); } else { alert("Game path is not set! Please select the path!"); |