mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
Merge branch 'modloader' into modloader-dev-flag
This commit is contained in:
commit
0366b1a2d9
@ -18,12 +18,12 @@ const roamingFolder =
|
|||||||
(process.platform == "darwin"
|
(process.platform == "darwin"
|
||||||
? process.env.HOME + "/Library/Preferences"
|
? process.env.HOME + "/Library/Preferences"
|
||||||
: process.env.HOME + "/.local/share");
|
: process.env.HOME + "/.local/share");
|
||||||
|
let storePath = join(roamingFolder, "shapez.io", "saves");
|
||||||
const storePath = join(roamingFolder, "shapez.io", "saves");
|
let modsPath = join(roamingFolder, "shapez.io", "mods");
|
||||||
const modsPath = join(dirname(app.getPath("exe")), "mods");
|
|
||||||
|
|
||||||
// No try-catch by design
|
// No try-catch by design
|
||||||
fs.mkdirSync(storePath, { recursive: true });
|
fs.mkdirSync(storePath, { recursive: true });
|
||||||
|
fs.mkdirSync(modsPath, { recursive: true });
|
||||||
|
|
||||||
/** @type {BrowserWindow} */
|
/** @type {BrowserWindow} */
|
||||||
let win = null;
|
let win = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user