Skip to content

Commit

Permalink
ygomaster: add neccesary persist & change copy to junction
Browse files Browse the repository at this point in the history
  • Loading branch information
Locietta committed Feb 26, 2024
1 parent a1188be commit 38bfb11
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bucket/ygomaster.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@
"if (Test-Path -Path $ygomaster_path) {",
" Remove-Item -Path $ygomaster_path -Force",
"}",
"# Copy Directory",
"Copy-Item -Recurse -Path \"$scoopdir\\apps\\$app\\current\" -Destination $ygomaster_path -Force"
"# Create Junction",
"New-Item -ItemType Junction -Path $ygomaster_path -Value \"$scoopdir\\apps\\$app\\current\""
],
"pre_uninstall": [
". $bucketsdir/sniffer/scripts/find_steam_game_folder.ps1",
"$game_path = find_steam_game_folder(\"1449850\")",
"$ygomaster_path = \"$game_path\\YgoMaster\"",
"if (Test-Path -Path $ygomaster_path) {",
" Remove-Item -Path $ygomaster_path -Force -Recurse",
" Remove-Item -Path $ygomaster_path -Force",
"}"
]
],
"persist": ["Data/Settings.json", "Data/CustomDuel.json", "Data/Players", "Data/ClientData"]
}

0 comments on commit 38bfb11

Please sign in to comment.