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:
parent
ed83770348
commit
e0e5fb8d2a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user