1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 18:21:51 +00:00

Fix mods folder incorrect path

This commit is contained in:
tobspr 2022-01-14 09:55:03 +01:00
parent ed83770348
commit e0e5fb8d2a

View File

@ -17,7 +17,7 @@ const roamingFolder =
? process.env.HOME + "/Library/Preferences"
: process.env.HOME + "/.local/share");
let storePath = path.join(roamingFolder, "shapez.io", "saves");
let modsPath = path.join(app.getAppPath(), "mods");
let modsPath = path.join(path.dirname(app.getPath("exe")), "mods");
if (!fs.existsSync(storePath)) {
// No try-catch by design