1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-15 19:21:49 +00:00

Merge branch 'modloader' into modloader-dev-flag

This commit is contained in:
dengr1065 2022-01-14 17:26:47 +02:00 committed by GitHub
commit 0366b1a2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,12 +18,12 @@ const roamingFolder =
(process.platform == "darwin"
? process.env.HOME + "/Library/Preferences"
: process.env.HOME + "/.local/share");
const storePath = join(roamingFolder, "shapez.io", "saves");
const modsPath = join(dirname(app.getPath("exe")), "mods");
let storePath = join(roamingFolder, "shapez.io", "saves");
let modsPath = join(roamingFolder, "shapez.io", "mods");
// No try-catch by design
fs.mkdirSync(storePath, { recursive: true });
fs.mkdirSync(modsPath, { recursive: true });
/** @type {BrowserWindow} */
let win = null;