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",
|
"name": "asajs",
|
||||||
"version": "4.0.6-indev",
|
"version": "4.0.7-indev",
|
||||||
"description": "Create your Minecraft JSON-UI resource packs using JavaScript",
|
"description": "Create your Minecraft JSON-UI resource packs using JavaScript",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Minecraft",
|
"Minecraft",
|
||||||
|
|
|
||||||
|
|
@ -174,12 +174,12 @@ export function getGamedataPath() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case "linux": {
|
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)
|
if (fs.existsSync(gamedata)) return (pathinfo.gamepath = gamedata)
|
||||||
else {
|
else {
|
||||||
return (pathinfo.gamepath = path.join(
|
return (pathinfo.gamepath = path.join(
|
||||||
process.env.HOME!,
|
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