fix linux path resolve
This commit is contained in:
parent
994fb34dbd
commit
688a66c052
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "asajs",
|
||||
"version": "4.0.6-indev",
|
||||
"version": "4.0.7-indev",
|
||||
"description": "Create your Minecraft JSON-UI resource packs using JavaScript",
|
||||
"keywords": [
|
||||
"Minecraft",
|
||||
|
|
|
|||
|
|
@ -174,12 +174,12 @@ export function getGamedataPath() {
|
|||
}
|
||||
|
||||
case "linux": {
|
||||
const gamedata = path.join(process.env.HOME!, "\\.local\\share\\mcpelauncher\\games\\com.mojang")
|
||||
const gamedata = path.join(process.env.HOME!, "/.local/share/mcpelauncher/games/com.mojang")
|
||||
if (fs.existsSync(gamedata)) return (pathinfo.gamepath = gamedata)
|
||||
else {
|
||||
return (pathinfo.gamepath = path.join(
|
||||
process.env.HOME!,
|
||||
"\\.var\\app\\io.mrarm.mcpelauncher\\data\\mcpelauncher\\games\\com.mojang",
|
||||
"/.var/app/io.mrarm.mcpelauncher/data/mcpelauncher/games/com.mojang",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue